From: Mike Taylor Date: Fri, 8 May 2015 23:04:44 +0000 (+0100) Subject: Support target and field facets in hashchange handler. X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=2d365154ee83aa50878b597f0b7f965b33861b4b;p=mkws-moved-to-github.git Support target and field facets in hashchange handler. Working nicely! --- diff --git a/src/mkws-team.js b/src/mkws-team.js index 04d83e8..17f0f1f 100644 --- a/src/mkws-team.js +++ b/src/mkws-team.js @@ -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]); } } }