소스 검색

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>");
             }