소스 검색

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();