From 0f98719a0d8ab29c666b1cf7e4a136dbe6ba9a5c Mon Sep 17 00:00:00 2001 From: Jakub Skoczen Date: Mon, 7 Mar 2011 18:09:03 +0100 Subject: [PATCH] Make sure ting facets do not mess with the search --- mkdru.client.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mkdru.client.js b/mkdru.client.js index 59f14a0..5638dd1 100644 --- 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; } -- 1.7.10.4