Permalink
Browse files

Remve tabs.

  • Loading branch information...
1 parent 4ff5e7a commit cfdc013ede6a9e2695ecaf410508d6d00cf66967 @jdecuyper committed Aug 9, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 select2.js
View
@@ -1138,12 +1138,12 @@
updateResults: function (initial) {
var search = this.search, results = this.results, opts = this.opts, data, self=this, input;
- // display currently selected value inside the searchbox (only for single select)
+ // display currently selected value inside the searchbox (only for single select)
if (initial === true && opts.keepValOnSearch && search.val() == "" && opts.element.attr("multiple") == undefined) {
var selected = opts.element.find(":selected");
search.val(selected.text());
}
-
+
// if the search is currently hidden we do not alter the results
if (initial !== true && (this.showSearchInput === false || !this.opened())) {
return;

0 comments on commit cfdc013

Please sign in to comment.