From c6919a2d324494c13b72ebdd4865b3136ef21589 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Sun, 6 Oct 2019 20:45:18 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E6=89=A9=E5=B1=95=20bootstrap-togg?= =?UTF-8?q?le=20=E6=8E=A7=E4=BB=B6=E6=94=AF=E6=8C=81=E7=A7=BB=E5=8A=A8?= =?UTF-8?q?=E8=AE=BE=E5=A4=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Bootstrap.Admin/wwwroot/lib/longbow/longbow.common.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/admin/Bootstrap.Admin/wwwroot/lib/longbow/longbow.common.js b/src/admin/Bootstrap.Admin/wwwroot/lib/longbow/longbow.common.js index 4a6a3632..313e32dd 100644 --- a/src/admin/Bootstrap.Admin/wwwroot/lib/longbow/longbow.common.js +++ b/src/admin/Bootstrap.Admin/wwwroot/lib/longbow/longbow.common.js @@ -574,5 +574,11 @@ $('.date').lgbDatePicker().on('show hide', function (e) { e.stopPropagation(); }); + + // 移动设备支持 bootstrap-toggle 扩展 + $('[data-toggle="toggle"]').on('touchend', function (e) { + $(this).tigger('click.bs.toggle'); + e.preventDefault(); + }); }); })(jQuery); \ No newline at end of file