Skip to content

Commit

Permalink
Fix: 適用失敗時にチェックボックスを同期するように
Browse files Browse the repository at this point in the history
  • Loading branch information
S--Minecraft committed Apr 15, 2017
1 parent 6dce2cf commit 293edac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/gui/js/repo.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -275,19 +275,21 @@ 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"
switch lang
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"
Expand Down

0 comments on commit 293edac

Please sign in to comment.