Sfoglia il codice sorgente

fixed destroy method

fixed destroy method
Stein, Peter 11 anni fa
parent
commit
0e58424599
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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();