浏览代码

fixed destroy method

fixed destroy method
Stein, Peter 11 年之前
父节点
当前提交
0e58424599
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      static/js/bootstrap-switch.js

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

@@ -339,7 +339,7 @@
           , $form = $element.closest('form')
           , $form = $element.closest('form')
           , $inputbox;
           , $inputbox;
 
 
-        $div.find(':not(inputSelector)').remove();
+        $div.find(':not(input)').remove();
 
 
         $inputbox = $div.children();
         $inputbox = $div.children();
         $inputbox.unwrap().unwrap();
         $inputbox.unwrap().unwrap();