Browse Source

Update bootstrap-switch.js

change ".find(':not(input[type!="hidden"])')" to .find(':not(inputSelector)')
Stein, Peter 11 years ago
parent
commit
7bf2ac7403
1 changed files with 1 additions and 1 deletions
  1. 1 1
      static/js/bootstrap-switch.js

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

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