1
0
mirror of synced 2025-02-21 14:33:15 +03:00

fix input field broken by fix to #132

This commit is contained in:
Igor Vaynberg 2012-06-21 21:36:08 -07:00
parent 16c3d31e06
commit 54b83c2baf

View File

@ -437,7 +437,7 @@
this.dropdown.data("select2", this); this.dropdown.data("select2", this);
this.results = results = this.container.find(resultsSelector); this.results = results = this.container.find(resultsSelector);
this.search = search = this.container.find("input[type=text]"); this.search = search = this.container.find("input.select2-input");
this.resultsPage = 0; this.resultsPage = 0;
this.context = null; this.context = null;
@ -1028,7 +1028,7 @@
"</a>", "</a>",
" <div class='select2-drop' style='display:none;'>" , " <div class='select2-drop' style='display:none;'>" ,
" <div class='select2-search'>" , " <div class='select2-search'>" ,
" <input type='text' autocomplete='off'/>" , " <input type='text' autocomplete='off' class='select2-input'/>" ,
" </div>" , " </div>" ,
" <ul class='select2-results'>" , " <ul class='select2-results'>" ,
" </ul>" , " </ul>" ,
@ -1309,7 +1309,7 @@
" <ul class='select2-choices'>", " <ul class='select2-choices'>",
//"<li class='select2-search-choice'><span>California</span><a href="javascript:void(0)" class="select2-search-choice-close"></a></li>" , //"<li class='select2-search-choice'><span>California</span><a href="javascript:void(0)" class="select2-search-choice-close"></a></li>" ,
" <li class='select2-search-field'>" , " <li class='select2-search-field'>" ,
" <input type='text' autocomplete='off' style='width: 25px;'>" , " <input type='text' autocomplete='off' style='width: 25px;' class='select2-input'>" ,
" </li>" , " </li>" ,
"</ul>" , "</ul>" ,
"<div class='select2-drop select2-drop-multi' style='display:none;'>" , "<div class='select2-drop select2-drop-multi' style='display:none;'>" ,