瀏覽代碼

formatSearching can be disabled

formatSearching can be disabled by returning null from the function which allows the searching message to be disabled.
Jacob Haslehurst 12 年之前
父節點
當前提交
3fcfbed03a
共有 1 個文件被更改,包括 1 次插入1 次删除
  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>");
             }