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
2 changed files with 8 additions and 2 deletions
|
@ -101,7 +101,9 @@
|
|||
|
||||
updatePage (data [0]);
|
||||
cache.put (url, data [0]);
|
||||
if (isPushStateEnabled) {
|
||||
history.replaceState(url, "", window.location);
|
||||
}
|
||||
handleLinks ();
|
||||
});
|
||||
|
||||
|
|
4
util.js
4
util.js
|
@ -281,7 +281,11 @@ updatePage = function (data) {
|
|||
]);
|
||||
|
||||
$('input[name=query]').bind('typeahead:selected', function(obj, datum) {
|
||||
if (isPushStateEnabled) {
|
||||
navigateTo (datum.navlink);
|
||||
} else {
|
||||
window.location = datum.navlink;
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue