From: Jason Skomorowski Date: Tue, 7 Oct 2014 01:48:37 +0000 (-0400) Subject: Refine facet behavior in the Topic demo MKWS-277 X-Git-Tag: 1.0.0~289^2~3 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=952ecfb032ea20cf5ba721f8c53a07a2e10eb98a;p=mkws-moved-to-github.git Refine facet behavior in the Topic demo MKWS-277 --- diff --git a/examples/htdocs/topic.html b/examples/htdocs/topic.html index af4e1d6..ff88fb4 100644 --- a/examples/htdocs/topic.html +++ b/examples/htdocs/topic.html @@ -34,6 +34,9 @@ return mkws.getParameterByName('q', obj[0]); } }); + Handlebars.registerHelper('mkws-topicurl', function(topic) { + return window.location.pathname + "?q=" + encodeURIComponent(topic); + });