mirror of
https://github.com/ronggang/transmission-web-control.git
synced 2025-04-22 15:08:13 +00:00
修复参数配置“启用时间段限制”点击时,时间输入框状态没有更新的BUG;
This commit is contained in:
parent
ab466a6983
commit
6c625a95ab
@ -336,14 +336,13 @@
|
|||||||
$.each(title, function (i, item) {
|
$.each(title, function (i, item) {
|
||||||
thisDialog.find("#" + item).prop("checked", system.serverConfig[item])
|
thisDialog.find("#" + item).prop("checked", system.serverConfig[item])
|
||||||
.click(function () {
|
.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");
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
thisDialog.find("*[enabledof='" + this.id + "']").prop("disabled", !this.checked);
|
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(".easyui-numberspinner[enabledof='" + this.id + "']").numberspinner("disable");
|
||||||
|
thisDialog.find(".easyui-timespinner[enabledof='" + this.id + "']").timespinner("disable");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user