siteSetLimit returns with ok on success
This commit is contained in:
parent
169cf2e6ae
commit
49adea1654
5 changed files with 62 additions and 49 deletions
|
@ -260,8 +260,9 @@ class Sidebar extends Class
|
|||
|
||||
# Site limit button
|
||||
@tag.find("#button-sitelimit").off("click").on "click", =>
|
||||
wrapper.ws.cmd "siteSetLimit", $("#input-sitelimit").val(), =>
|
||||
wrapper.notifications.add "done-sitelimit", "done", "Site storage limit modified!", 5000
|
||||
wrapper.ws.cmd "siteSetLimit", $("#input-sitelimit").val(), (res) =>
|
||||
if res == "ok"
|
||||
wrapper.notifications.add "done-sitelimit", "done", "Site storage limit modified!", 5000
|
||||
@updateHtmlTag()
|
||||
return false
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue