浏览代码

Update bootstrap-switch.js

change ".find(':not(input[type!="hidden"])')" to .find(':not(inputSelector)')
Stein, Peter 11 年之前
父节点
当前提交
7bf2ac7403
共有 1 个文件被更改,包括 1 次插入1 次删除
  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();