Преглед изворни кода

fixed destroy method

fixed destroy method
Stein, Peter пре 12 година
родитељ
комит
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')
           , $inputbox;
 
-        $div.find(':not(inputSelector)').remove();
+        $div.find(':not(input)').remove();
 
         $inputbox = $div.children();
         $inputbox.unwrap().unwrap();