Jelajahi Sumber

Update bootstrap-switch.js

change ".find(':not(input[type!="hidden"])')" to .find(':not(inputSelector)')
Stein, Peter 11 tahun lalu
induk
melakukan
7bf2ac7403
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      static/js/bootstrap-switch.js

+ 1 - 1
static/js/bootstrap-switch.js

@@ -278,7 +278,7 @@
           , $form = $element.closest('form')
           , $form = $element.closest('form')
           , $inputbox;
           , $inputbox;
 
 
-        $div.find(':not(input[type!="hidden"])').remove();
+        $div.find(':not(inputSelector)').remove();
 
 
         $inputbox = $div.children();
         $inputbox = $div.children();
         $inputbox.unwrap().unwrap();
         $inputbox.unwrap().unwrap();