diff options
Diffstat (limited to 'fg21sim')
-rw-r--r-- | fg21sim/webui/static/js/configs.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fg21sim/webui/static/js/configs.js b/fg21sim/webui/static/js/configs.js index 67fe032..e1e9a93 100644 --- a/fg21sim/webui/static/js/configs.js +++ b/fg21sim/webui/static/js/configs.js @@ -386,7 +386,7 @@ var resetConfigs = function (url) { */ var setServerConfigs = function (url, data) { data = typeof data !== "undefined" ? data : {}; - return $.postJSON(url, {action: "reset", data: data}, + return $.postJSON(url, {action: "set", data: data}, function (response) { setFormConfigs({}, response.errors); }) @@ -594,7 +594,7 @@ $(document).ready(function () { var data = {}; data[name] = value; setServerConfigs(ajax_url, data) - .then(function () { validateServerConfigs(ajax_url); }) + .then(function () { return validateServerConfigs(ajax_url); }) .done(function () { updateFormConfigStatus(); }); }); }); |