facet template now uses href instead of linkdata.
authorMike Taylor <mike@indexdata.com>
Fri, 8 May 2015 22:49:01 +0000 (23:49 +0100)
committerMike Taylor <mike@indexdata.com>
Fri, 8 May 2015 22:49:01 +0000 (23:49 +0100)
src/templates/facet.handlebars

index 13321ea..9307b96 100644 (file)
@@ -6,12 +6,12 @@ caption - caption for this facet
 terms:
   term - term name
   count - count of items matching in the current search for this team
-  linkdata - attributes to add to the term element including an onclick handler
+  href - link for facet
 }}
 
 <div class="mkws-facet-title mkwsFacetTitle">{{{mkws-translate caption}}}</div>
 {{#each terms}}
   <div class="mkws-term mkwsTerm">
-    <a href="#" {{{linkdata}}}>{{term}}</a> <span>{{count}}</span>
+    <a href="{{href}}">{{term}}</a> <span>{{count}}</span>
   </div>
 {{/each}}