projects
/
mkdru-moved-to-drupal.org.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4dc6c6e
)
Make sure ting facets do not mess with the search
author
Jakub Skoczen
<jakub@indexdata.dk>
Mon, 7 Mar 2011 17:09:03 +0000
(18:09 +0100)
committer
Jakub Skoczen
<jakub@indexdata.dk>
Mon, 7 Mar 2011 17:09:03 +0000
(18:09 +0100)
mkdru.client.js
patch
|
blob
|
history
diff --git
a/mkdru.client.js
b/mkdru.client.js
index
59f14a0
..
5638dd1
100644
(file)
--- a/
mkdru.client.js
+++ b/
mkdru.client.js
@@
-222,8
+222,7
@@
mkdru.hashChange = function () {
// TING hack, switching tabs resets the hash but does not re-load the page
// simply ignore new hash and set it to the old state
var hash = $.param.fragment();
- if (hash.indexOf('addon-result') == 0 || hash.indexOf('content-result') == 0
- || hash.indexOf('ting-result') == 0) {
+ if (hash.indexOf("-result") != -1 || hash.indexOf("facets=") != -1) {
mkdru.hashFromState();
return;
}