COPS now also work if Pushstate / ReplaceState is not available (IE9). Thanks to At Libitum. should fix #117
This commit is contained in:
parent
d12c7e9086
commit
1051af4a61
|
@ -101,7 +101,9 @@
|
||||||
|
|
||||||
updatePage (data [0]);
|
updatePage (data [0]);
|
||||||
cache.put (url, data [0]);
|
cache.put (url, data [0]);
|
||||||
|
if (isPushStateEnabled) {
|
||||||
history.replaceState(url, "", window.location);
|
history.replaceState(url, "", window.location);
|
||||||
|
}
|
||||||
handleLinks ();
|
handleLinks ();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
4
util.js
4
util.js
|
@ -281,7 +281,11 @@ updatePage = function (data) {
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$('input[name=query]').bind('typeahead:selected', function(obj, datum) {
|
$('input[name=query]').bind('typeahead:selected', function(obj, datum) {
|
||||||
|
if (isPushStateEnabled) {
|
||||||
navigateTo (datum.navlink);
|
navigateTo (datum.navlink);
|
||||||
|
} else {
|
||||||
|
window.location = datum.navlink;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue