From 6c625a95ab2793ed434e97f79b29a8c9773d5048 Mon Sep 17 00:00:00 2001 From: ronggang Date: Wed, 28 Mar 2018 14:28:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=8F=82=E6=95=B0=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E2=80=9C=E5=90=AF=E7=94=A8=E6=97=B6=E9=97=B4=E6=AE=B5?= =?UTF-8?q?=E9=99=90=E5=88=B6=E2=80=9D=E7=82=B9=E5=87=BB=E6=97=B6=EF=BC=8C?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E8=BE=93=E5=85=A5=E6=A1=86=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E6=9B=B4=E6=96=B0=E7=9A=84BUG=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../template/dialog-system-config.html | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/tr-web-control/template/dialog-system-config.html b/src/tr-web-control/template/dialog-system-config.html index 55fbf74..3a25dd8 100644 --- a/src/tr-web-control/template/dialog-system-config.html +++ b/src/tr-web-control/template/dialog-system-config.html @@ -336,14 +336,13 @@ $.each(title, function (i, item) { thisDialog.find("#" + item).prop("checked", system.serverConfig[item]) .click(function () { - if (thisDialog.find("*[enabledof='" + this.id + "']").hasClass("easyui-numberspinner")) { - if (this.checked) { - thisDialog.find("*[enabledof='" + this.id + "']").numberspinner("enable"); - } else { - thisDialog.find("*[enabledof='" + this.id + "']").numberspinner("disable"); - } + thisDialog.find("*[enabledof='" + this.id + "']").prop("disabled", !this.checked); + if (this.checked) { + thisDialog.find(".easyui-numberspinner[enabledof='" + this.id + "']").numberspinner("enable"); + thisDialog.find(".easyui-timespinner[enabledof='" + this.id + "']").timespinner("enable"); } else { - thisDialog.find("*[enabledof='" + this.id + "']").prop("disabled", !this.checked); + thisDialog.find(".easyui-numberspinner[enabledof='" + this.id + "']").numberspinner("disable"); + thisDialog.find(".easyui-timespinner[enabledof='" + this.id + "']").timespinner("disable"); } }); });