From 3cac19e089099102b36fbf98f9e8dc23cfb1faa4 Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 11 Jul 2019 23:05:34 +0200 Subject: [PATCH] Add a unique id to text filter facet checkboxes and labels. --- .../modules/core/scripts/facets/text-search-facet.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/main/webapp/modules/core/scripts/facets/text-search-facet.js b/main/webapp/modules/core/scripts/facets/text-search-facet.js index 907868683..6a6bf9b44 100644 --- a/main/webapp/modules/core/scripts/facets/text-search-facet.js +++ b/main/webapp/modules/core/scripts/facets/text-search-facet.js @@ -87,6 +87,7 @@ TextSearchFacet.prototype.hasSelection = function() { TextSearchFacet.prototype._initializeUI = function() { var self = this; + var counter = this._uniqueIdForLabels(); this._div.empty().show().html( '
' + '
' + @@ -101,8 +102,10 @@ TextSearchFacet.prototype._initializeUI = function() { '
' + '' + '' + - '' + - '' + + '' + + '' + + '' + + '' + '' + '
' ); @@ -207,3 +210,8 @@ TextSearchFacet.prototype._scheduleUpdate = function() { TextSearchFacet.prototype._updateRest = function() { Refine.update({ engineChanged: true }); }; + +var textSearchFacetCounterForLabels = 0; +TextSearchFacet.prototype._uniqueIdForLabels = function() { + return textSearchFacetCounterForLabels++; +}; \ No newline at end of file