Skip to content

Commit

Permalink
Merge branch 'master' of github.com:documentcloud/visualsearch
Browse files Browse the repository at this point in the history
# By DracoBlue
# Via DracoBlue (1) and Samuel Clay (1)
* 'master' of github.com:documentcloud/visualsearch:
  Remove the remainder based on the optional label value.
  • Loading branch information
samuelclay committed Feb 10, 2014
2 parents 46705f4 + 3943eaf commit 70cf90a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/js/views/search_input.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ VS.ui.SearchInput = Backbone.View.extend({
e.preventDefault();
// stopPropogation does weird things in jquery-ui 1.9
// e.stopPropagation();
var remainder = this.addTextFacetRemainder(ui.item.value);
var remainder = this.addTextFacetRemainder(ui.item.label || ui.item.value);
var position = this.options.position + (remainder ? 1 : 0);
this.app.searchBox.addFacet(ui.item instanceof String ? ui.item : ui.item.value, '', position);
return false;
Expand Down

0 comments on commit 70cf90a

Please sign in to comment.