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]);
|
||||||
history.replaceState(url, "", window.location);
|
if (isPushStateEnabled) {
|
||||||
|
history.replaceState(url, "", window.location);
|
||||||
|
}
|
||||||
handleLinks ();
|
handleLinks ();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
6
util.js
6
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) {
|
||||||
navigateTo (datum.navlink);
|
if (isPushStateEnabled) {
|
||||||
|
navigateTo (datum.navlink);
|
||||||
|
} else {
|
||||||
|
window.location = datum.navlink;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue