Support target and field facets in hashchange handler.
authorMike Taylor <mike@indexdata.com>
Fri, 8 May 2015 23:04:44 +0000 (00:04 +0100)
committerMike Taylor <mike@indexdata.com>
Fri, 8 May 2015 23:04:44 +0000 (00:04 +0100)
Working nicely!

src/mkws-team.js

index 04d83e8..17f0f1f 100644 (file)
@@ -134,6 +134,11 @@ mkws.makeTeam = function($, teamName) {
           if (that.submitted()) {
             that.reShow();
           }
+        } else if (key.indexOf('xt-') == 0) {
+          that.limitTarget(key.substring(3), val);
+        } else if (key.indexOf('xf-') == 0) {
+          var a = key.split('-');
+          that.limitQuery(a[1], a[2]);
         }
       }
     }