From ef4ffe1c5cb865e20b236192e1acf15fb36e4eed Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Thu, 24 Nov 2016 16:40:22 +0800 Subject: webui: Use new ".getJSONUncached()" instead of ".getJSON()" --- fg21sim/webui/static/js/configs.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'fg21sim/webui/static/js/configs.js') 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"; -- cgit v1.2.2