Kaynağa Gözat

chzn not show search bar if less than 10 option - ref #6569

Hubert Borderiou 11 yıl önce
ebeveyn
işleme
2baa127afd
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      main/template/default/layout/footer.tpl

+ 1 - 1
main/template/default/layout/footer.tpl

@@ -63,7 +63,7 @@
 /* Makes row highlighting possible */
 /* Makes row highlighting possible */
 $(document).ready( function() {
 $(document).ready( function() {
     //Chosen select
     //Chosen select
-    $(".chzn-select").chosen();     
+    $(".chzn-select").chosen({disable_search_threshold: 10});
     
     
     //Table highlight
     //Table highlight
     $("form .data_table input:checkbox").click(function() {
     $("form .data_table input:checkbox").click(function() {