Robin North
486ef0e0ba
Abort previous pending XHR when navigating
2018-01-23 15:25:56 +00:00
Behind The Math
6000ad5620
Restore the trigger for the resize and scroll events to onSwitch
2018-01-22 20:42:57 -05:00
Behind The Math
e7935d9c74
Add scrollRestoration option
2018-01-22 18:56:22 -05:00
Behind The Math
546b9abba3
Small bug fix
2018-01-22 17:32:59 -05:00
Behind The Math
bc2432b18c
Scroll to element position when URL contains a hash
...
When the URL contains a hash, try to find the corresponding
element, and if found, scroll to its position.
Based on darylteo/pjax@4893a2a657
Fixes #22 .
2018-01-22 11:45:42 -05:00
Behind The Math
37d303ed66
Save scroll position with history
...
Save scroll position when navigating away from a page, and restore
it when navigating back to that page.
Fixes #30 .
2018-01-22 11:27:13 -05:00
BehindTheMath
b5c2120d08
Fix async switches ( #110 )
...
If any switches are async, the subsequent code will execute before the switches are finished. This PR moves all that code to a new function, and debounces the calls to onSwitch() so it only executes
once, after all the switches finish.
Fizes #72 .
2018-01-22 10:55:29 -05:00
BehindTheMath
6fa51e58f8
Add checks for XHR redirects ( #101 )
...
Fixes #7
This checks for redirects by looking for the following, in sequence:
- XMLHttpRequest.responseURL
- the X-PJAX-URL header (like jquery-pjax)
- the X-XHR-Redirected-To header (like Turbolinks)
2018-01-10 15:45:55 -05:00
Behind The Math
c0d64e41b8
Fix linting errors
2018-01-09 14:09:40 -05:00
BehindTheMath
6491e32437
Add an option to set a timeout for XHR requests ( #95 )
...
Closes #24 .
2018-01-07 23:56:11 -05:00
Oskar
be5d58d550
Asynchronous switch functions (Make sure the DOM is parsed after switching) ( #79 )
...
* Make sure the DOM is parsed after switching
* Fix reload-link in the example
2017-12-19 13:58:22 +01:00
BehindTheMath
75eddfcab6
Add default switches to Pjax.switches ( #92 )
...
Fixes #68 and reverts #74
2017-12-19 13:49:26 +01:00
markusfluer
af57adaafb
Fixed #77 Fails on Internet Explorer
2017-11-02 13:02:17 +01:00
markusfluer
86e5a2281a
Added support do do a push-state ajax request with forms
2017-09-18 14:13:45 +02:00
CPTechnikVX
6dffeba21a
Fix bug on IE11 preventing from ajax page refresh
...
It used to be fixed a long time ago, but was perhaps merged away...
2016-11-28 15:39:14 +01:00
Christopher Brickley
bf71894395
fix(attributes): for attributes without a value, add only the attribute
...
Some attributes, such as `itemscope` have no corresponding value. This
change allows them to still be set.
2016-04-19 12:15:39 -04:00
Maxime Thirouin
afe0ddb6b9
Fixed: `this.reload` is now a Function
...
Closes #65
2016-03-24 12:38:15 +01:00
darylteo
477d967804
Add clone and executeScripts as well
2016-01-05 15:02:39 +11:00
darylteo
e882b8639a
Use required forEachElse
2016-01-05 15:02:00 +11:00
darylteo
3d25bee131
Bind required functions to pjax
2016-01-05 14:22:03 +11:00
Peter Lada
e6a35f38e4
attach data to pjaxified links so they can't be pjaxified twice. add simple refresh method
2015-01-21 00:11:59 -08:00
Isaac Gierard
949d1be1a0
fixed calling parseOptions with arrayed arguments
2015-01-16 15:46:31 -08:00
Isaac Gierard
a119033870
fixed some require paths also added isSupported include to index.js
2015-01-16 15:44:57 -08:00
Isaac Gierard
7e81f791a9
fixing issues with parse-options and related tests
2014-11-20 16:21:19 -08:00
Isaac Gierard
d4ba34e5ed
moved options parsing into separate file and created test
...
moved the options paring system into it's own function so that it may be testable
2014-11-20 14:39:48 -08:00
Isaac Gierard
ea7d1d2fce
prevent scrollTo from being converted from false to 0
...
In the loadUrl function there is an explicit check for false as a means to disable the scrollTo behavior however if the scrollTo option is passed to the constructor as false the gaud statement was converting false to 0.
2014-11-18 14:45:50 -08:00
Maxime Thirouin
3bc67f245c
Cleanup & travis (should break)
2014-10-14 11:42:36 +02:00
Maxime Thirouin
165532d43c
Relocate all the things
2014-10-14 08:23:56 +02:00