Explorar o código

formatSearching can be disabled

formatSearching can be disabled by returning null from the function which allows the searching message to be disabled.
Jacob Haslehurst %!s(int64=12) %!d(string=hai) anos
pai
achega
3fcfbed03a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      select2.js

+ 1 - 1
select2.js

@@ -1226,7 +1226,7 @@
                 }
                 return;
             }
-            else {
+            else if (opts.formatSearching() != null) {
                 render("<li class='select2-searching'>" + opts.formatSearching() + "</li>");
             }