mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merge pull request #3150 from IgorNadj/patch-3
BUG fix listview not working with IE9
This commit is contained in:
commit
a5a390680f
@ -22,6 +22,14 @@
|
||||
if(window.location.search) {
|
||||
ajaxOpts.data = window.location.search.replace(/^\?/, '') + '&' + $.param(ajaxOpts.data);
|
||||
}
|
||||
|
||||
// For browsers which do not support history.pushState like IE9, ss framework uses hash to track
|
||||
// the current location for PJAX, so for them we pass the query string stored in the hash instead
|
||||
if(!window.history || !window.history.pushState){
|
||||
if(window.location.hash && window.location.hash.indexOf('?') != -1){
|
||||
ajaxOpts.data = window.location.hash.substring(window.location.hash.indexOf('?') + 1) + '&' + $.param(ajaxOpts.data);
|
||||
}
|
||||
}
|
||||
|
||||
form.addClass('loading');
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user