refactor: 扩展 bootstrap-toggle 控件支持移动设备
This commit is contained in:
parent
a169ff89c1
commit
c6919a2d32
|
@ -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);
|
Loading…
Reference in New Issue