From 30fc22340b5ee19fc542e15311fe321cb7c55e50 Mon Sep 17 00:00:00 2001 From: Ere Maijala Date: Wed, 18 Feb 2015 14:27:47 +0200 Subject: [PATCH] Allow deselecting a facet by clicking the facet value also in AND facets. --- themes/blueprint/templates/Recommend/SideFacets.phtml | 8 ++++---- themes/bootstrap3/templates/Recommend/SideFacets.phtml | 2 +- .../templates/Recommend/SideFacets-dialog.phtml | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/themes/blueprint/templates/Recommend/SideFacets.phtml b/themes/blueprint/templates/Recommend/SideFacets.phtml index 8f83ab3cdb3..a0d84b97ce0 100644 --- a/themes/blueprint/templates/Recommend/SideFacets.phtml +++ b/themes/blueprint/templates/Recommend/SideFacets.phtml @@ -77,17 +77,17 @@ +
-
href="currentPath().$results->getUrlQuery()->removeFacet($title, $thisFacet['value'], true, $thisFacet['operator']) ?>">escapeHtml($thisFacet['displayText'])?> Selected
+ escapeHtml($thisFacet['displayText'])?> Selected -
escapeHtml($thisFacet['displayText'])?> (localizedNumber($thisFacet['count'])?>) Delete -
- + + 5): ?>
transEsc('less')?> ...
diff --git a/themes/bootstrap3/templates/Recommend/SideFacets.phtml b/themes/bootstrap3/templates/Recommend/SideFacets.phtml index 11f5ad03164..abf77f1fe42 100644 --- a/themes/bootstrap3/templates/Recommend/SideFacets.phtml +++ b/themes/bootstrap3/templates/Recommend/SideFacets.phtml @@ -162,7 +162,7 @@ JS; transEsc('more')?> ... - + diff --git a/themes/jquerymobile/templates/Recommend/SideFacets-dialog.phtml b/themes/jquerymobile/templates/Recommend/SideFacets-dialog.phtml index c68d97976ed..80771ae724d 100644 --- a/themes/jquerymobile/templates/Recommend/SideFacets-dialog.phtml +++ b/themes/jquerymobile/templates/Recommend/SideFacets-dialog.phtml @@ -21,7 +21,7 @@ ? str_pad('', 4 * $thisFacet['level'] * 6, ' ', STR_PAD_LEFT) : ''; ?> -
  • escapeHtml($thisFacet['displayText'])?> localizedNumber($thisFacet['count'])?>
  • +
  • escapeHtml($thisFacet['displayText'])?> localizedNumber($thisFacet['count'])?>
  • escapeHtml($thisFacet['displayText'])?> localizedNumber($thisFacet['count'])?>