Merge branch 'dev-toggle' into dev

This commit is contained in:
Argo Zhang 2019-10-06 20:46:06 +08:00
commit 68d2ac8cb1
No known key found for this signature in database
GPG Key ID: 152E398953DDF19F
1 changed files with 6 additions and 0 deletions

View File

@ -574,5 +574,11 @@
$('.date').lgbDatePicker().on('show hide', function (e) { $('.date').lgbDatePicker().on('show hide', function (e) {
e.stopPropagation(); e.stopPropagation();
}); });
// 移动设备支持 bootstrap-toggle 扩展
$('[data-toggle="toggle"]').on('touchend', function (e) {
$(this).tigger('click.bs.toggle');
e.preventDefault();
});
}); });
})(jQuery); })(jQuery);