Skip to content

Commit a077e31

Browse files
author
Praveen Kumar
authored
Merge pull request #49 from praveenmenon23/didyoumean_fix2
(chore): Passing totalnumberofproducts in did you mean
2 parents b363b05 + d3e4ee6 commit a077e31

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

unbxdSearch.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1358,7 +1358,7 @@ var unbxdSearchInit = function(jQuery, Handlebars){
13581358
if(!this.compiledSpellCheckTemp)
13591359
this.compiledSpellCheckTemp = Handlebars.compile(this.options.spellCheckTemp);
13601360

1361-
jQuery(this.options.spellCheck).html(this.compiledSpellCheckTemp({suggestion : obj.didYouMean[0].suggestion})).show();
1361+
jQuery(this.options.spellCheck).html(this.compiledSpellCheckTemp({suggestion : obj.didYouMean[0].suggestion , numberOfProducts : obj.response.numberOfProducts })).show();
13621362

13631363
facetsAlso ? this.callResults(this.paintAfterSpellCheck) : this.callResults(this.paintOnlyResultSet) ;
13641364

@@ -1369,7 +1369,7 @@ var unbxdSearchInit = function(jQuery, Handlebars){
13691369
if(!this.compiledSpellCheckTemp)
13701370
this.compiledSpellCheckTemp = Handlebars.compile(this.options.spellCheckTemp);
13711371

1372-
jQuery(this.options.spellCheck).html(this.compiledSpellCheckTemp({suggestion : obj.didYouMean[0].suggestion})).show();
1372+
jQuery(this.options.spellCheck).html(this.compiledSpellCheckTemp({suggestion : obj.didYouMean[0].suggestion , numberOfProducts : obj.response.numberOfProducts })).show();
13731373

13741374
facetsAlso ? this.callResults(this.paintAfterSpellCheck) : this.callResults(this.paintOnlyResultSet) ;
13751375
}

0 commit comments

Comments
 (0)