From: Jakub Skoczen Date: Mon, 7 Mar 2011 17:09:03 +0000 (+0100) Subject: Make sure ting facets do not mess with the search X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=0f98719a0d8ab29c666b1cf7e4a136dbe6ba9a5c;p=mkdru-moved-to-drupal.org.git Make sure ting facets do not mess with the search --- 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; }