فهرست منبع

Allow the change event of the checkbox to propagate to not break other modules that might depend on it.

Marco Kerwitz 12 سال پیش
والد
کامیت
9df1884350
1فایلهای تغییر یافته به همراه5 افزوده شده و 1 حذف شده
  1. 5 1
      static/js/bootstrapSwitch.js

+ 5 - 1
static/js/bootstrapSwitch.js

@@ -103,7 +103,11 @@
               var $element = $(this).parent();
 
               e.preventDefault();
-              e.stopImmediatePropagation();
+              // don't stop propagation of the
+              // change event, there's no need to do so
+              // and we don't want to break other modules
+              // that might depend on this event.
+              // e.stopImmediatePropagation();
 
               $element.css('left', '');