diff options
author | Aaron LI <aaronly.me@outlook.com> | 2016-11-24 16:40:22 +0800 |
---|---|---|
committer | Aaron LI <aaronly.me@outlook.com> | 2016-11-24 16:40:22 +0800 |
commit | ef4ffe1c5cb865e20b236192e1acf15fb36e4eed (patch) | |
tree | b7a5ccdb421879f61eb79b124bbfec6b2c335e43 /fg21sim/webui/static/js/configs.js | |
parent | 098656014870aa59d9ffde51c4021a3e21ddfae0 (diff) | |
download | fg21sim-ef4ffe1c5cb865e20b236192e1acf15fb36e4eed.tar.bz2 |
webui: Use new ".getJSONUncached()" instead of ".getJSON()"
Diffstat (limited to 'fg21sim/webui/static/js/configs.js')
-rw-r--r-- | fg21sim/webui/static/js/configs.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fg21sim/webui/static/js/configs.js b/fg21sim/webui/static/js/configs.js index 781e334..f7419c9 100644 --- a/fg21sim/webui/static/js/configs.js +++ b/fg21sim/webui/static/js/configs.js @@ -285,7 +285,7 @@ var showModalConfigs = function (data) { */ var getServerConfigs = function (url, keys) { keys = typeof keys !== "undefined" ? keys : null; - return $.getJSON(url, {action: "get", keys: JSON.stringify(keys)}, + return $.getJSONUncached(url, {action: "get", keys: JSON.stringify(keys)}, function (response) { setFormConfigs(response.data, {}); }); @@ -297,7 +297,7 @@ var getServerConfigs = function (url, keys) { * and mark the corresponding form fields to be invalid with details. */ var validateServerConfigs = function (url) { - return $.getJSON(url, {action: "validate"}, + return $.getJSONUncached(url, {action: "validate"}, function (response) { setFormConfigs({}, response.errors); }); @@ -434,7 +434,7 @@ var saveServerConfigFile = function (url, clobber) { var existsServerFile = function (url, filepath, callback) { var data = {action: "exists", filepath: JSON.stringify(filepath)}; - return $.getJSON(url, data, callback) + return $.getJSONUncached(url, data, callback) .fail(function (jqxhr) { var modalData = {}; modalData.icon = "times-circle"; |