From 293edac830cf3171f0e580fa97f2bd2ce96b4670 Mon Sep 17 00:00:00 2001 From: S Date: Sun, 16 Apr 2017 04:24:37 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20=E9=81=A9=E7=94=A8=E5=A4=B1=E6=95=97?= =?UTF-8?q?=E6=99=82=E3=81=AB=E3=83=81=E3=82=A7=E3=83=83=E3=82=AF=E3=83=9C?= =?UTF-8?q?=E3=83=83=E3=82=AF=E3=82=B9=E3=82=92=E5=90=8C=E6=9C=9F=E3=81=99?= =?UTF-8?q?=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/gui/js/repo.coffee | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gui/js/repo.coffee b/src/gui/js/repo.coffee index bb74c34..93d1f06 100644 --- a/src/gui/js/repo.coffee +++ b/src/gui/js/repo.coffee @@ -275,7 +275,7 @@ document.getElementById("apply").addEventListener("click", -> when "en" then p.addLog(mod.showname, "Removed Successfully") when "ru" then p.addLog(mod.showname, "Удалено успешно") else if phase is "fail" - $button = $("button[data-path=\"#{mod.name}\"]") + $checkbox = $("button[data-path=\"#{mod.name}\"]").find("input") errored = true switch type when "add" @@ -283,11 +283,13 @@ document.getElementById("apply").addEventListener("click", -> when "ja" then p.addLog(mod.showname, "適用失敗(#{err})") when "en" then p.addLog(mod.showname, "Failed to Apply(#{err})") when "ru" then p.addLog(mod.showname, "Не удалось применить(#{err})") + $checkbox.prop("checked", false) when "delete" switch lang when "ja" then p.addLog(mod.showname, "解除失敗(#{err})") when "en" then p.addLog(mod.showname, "Failed to Remove(#{err})") when "ru" then p.addLog(mod.showname, "Не удалось удалить(#{err})") + $checkbox.prop("checked", true) else switch phase when "download"