assets/javascripts/bookingsync/toggle.js in bootstrap-bookingsync-sass-1.0.0.beta1 vs assets/javascripts/bookingsync/toggle.js in bootstrap-bookingsync-sass-1.0.0.beta2
- old
+ new
@@ -7,9 +7,10 @@
+function ($) {
'use strict';
$(document).on('click', '[data-toggle="toggle"]', function (event) {
+ event.preventDefault();
var element = $(this);
$(element.data('target')).toggleClass(element.data('value'));
});
}(jQuery);