Mike S 12 rokov pred
rodič
commit
796c9e802a
1 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  1. 2 2
      select2.js

+ 2 - 2
select2.js

@@ -1343,7 +1343,7 @@ the specific language governing permissions and limitations under the Apache Lic
          * Opens control, sets input value, and updates results.
          */
         // abstract
-        setSearch: function (term) {
+        search: function (term) {
             this.open();
             this.search.val(term);
             this.updateResults(false);
@@ -3034,7 +3034,7 @@ the specific language governing permissions and limitations under the Apache Lic
             opts,
             select2,
             value, multiple,
-            allowedMethods = ["val", "destroy", "opened", "open", "close", "focus", "isFocused", "container", "onSortStart", "onSortEnd", "enable", "readonly", "positionDropdown", "data", "setSearch"],
+            allowedMethods = ["val", "destroy", "opened", "open", "close", "focus", "isFocused", "container", "onSortStart", "onSortEnd", "enable", "readonly", "positionDropdown", "data", "search"],
             valueMethods = ["val", "opened", "isFocused", "container", "data"];
 
         this.each(function () {