Merge pull request #3150 from IgorNadj/patch-3

BUG fix listview not working with IE9
This commit is contained in:
Damian Mooyman 2014-05-22 13:11:03 +12:00
commit a5a390680f

View File

@ -22,6 +22,14 @@
if(window.location.search) { if(window.location.search) {
ajaxOpts.data = window.location.search.replace(/^\?/, '') + '&' + $.param(ajaxOpts.data); 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'); form.addClass('loading');