Skip to content

Commit

Permalink
fix #276
Browse files Browse the repository at this point in the history
  • Loading branch information
albertoh committed Aug 19, 2015
1 parent 09ac001 commit 520caa2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions client/src/main/webapp/WEB-INF/facets.vm
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@
<h2>#translatable("facets.used")</h2>

#foreach($filter in $search.usedFilters.entrySet())
<div class="used">
<a href="" data-key="$esc.html($filter.value)" data-facet="$filter.key" class="res" >
<div class="used" style="clear: both;" data-key="$esc.html($filter.value)" data-facet="$filter.key">
<div style="float:left; margin-top: -5px;" class="small" >#parse("svg/x.svg")</div>
<a href="" class="res" >
#if($filter.key == "collection")
#translatable("facet.$filter.key") : #transCol("$filter.value")
#elseif($filter.key == "fedora.model")
Expand Down
2 changes: 1 addition & 1 deletion client/src/main/webapp/js/facets.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Facets.prototype = {
this.addContextButtons();
var facets = this.data.facet_counts.facet_fields;
this.render($("#facets>div.unused"), facets);
$("#facets div.used>a.res").click(_.partial(function(facets, event) {
$("#facets div.used").click(_.partial(function(facets, event) {
event.preventDefault();
var val = $(this).data("key");
var facet = $(this).data("facet");
Expand Down

0 comments on commit 520caa2

Please sign in to comment.