From e522f66bcc2434eac5bb8d2a2bd13397973047a1 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Thu, 17 Nov 2016 14:35:00 +0800 Subject: webui: configs.js: Rename "showConfigsModal" to "showModalConfigs()" --- fg21sim/webui/static/js/configs.js | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'fg21sim') diff --git a/fg21sim/webui/static/js/configs.js b/fg21sim/webui/static/js/configs.js index 2910ede..87919e2 100644 --- a/fg21sim/webui/static/js/configs.js +++ b/fg21sim/webui/static/js/configs.js @@ -299,7 +299,7 @@ var updateFormConfigStatus = function () { /** * Show notification contents in the "#modal-configs" modal box. */ -var showConfigsModal = function (data) { +var showModalConfigs = function (data) { var modalBox = $("#modal-configs"); showModal(modalBox, data); }; @@ -358,7 +358,7 @@ var resetConfigs = function (url) { var modalData = {}; modalData.icon = "check-circle"; modalData.message = "Reset and synchronized the configurations."; - showConfigsModal(modalData); + showModalConfigs(modalData); }); }) .fail(function (error) { @@ -367,7 +367,7 @@ var resetConfigs = function (url) { modalData.message = "Failed to reset the configurations!"; modalData.code = error.status; modalData.reason = error.statusText; - showConfigsModal(modalData); + showModalConfigs(modalData); }); }; @@ -396,7 +396,7 @@ var setServerConfigs = function (url, data) { modalData.message = "Failed to update/set the configuration data!"; modalData.code = error.status; modalData.reason = error.statusText; - showConfigsModal(modalData); + showModalConfigs(modalData); }); }; @@ -420,7 +420,7 @@ var loadServerConfigFile = function (url, userconfig) { modalData.message = "Failed to load the user configuration file!"; modalData.code = error.status; modalData.reason = error.statusText; - showConfigsModal(modalData); + showModalConfigs(modalData); }); }; @@ -450,7 +450,7 @@ var saveServerConfigFile = function (url, clobber) { modalData.message = ("Configurations saved to file. " + "But there exist some invalid values!"); } - showConfigsModal(modalData); + showModalConfigs(modalData); }) .fail(function (error) { var modalData = {}; @@ -458,7 +458,7 @@ var saveServerConfigFile = function (url, clobber) { modalData.message = "Failed to save the configurations!"; modalData.code = error.status; modalData.reason = error.statusText; - showConfigsModal(modalData); + showModalConfigs(modalData); }); }; @@ -477,7 +477,7 @@ var existsServerFile = function (url, filepath, callback) { "of the user configuration file!"); modalData.code = error.status; modalData.reason = error.statusText; - showConfigsModal(modalData); + showModalConfigs(modalData); }); }; @@ -527,7 +527,7 @@ $(document).ready(function () { } }, ]; - showConfigsModal(modalData); + showModalConfigs(modalData); }); // Load the configurations from the specified user configuration file @@ -544,7 +544,7 @@ $(document).ready(function () { var modalData = {}; modalData.icon = "check-circle"; modalData.message = "Loaded the configurations from file."; - showConfigsModal(modalData); + showModalConfigs(modalData); }); }); @@ -574,7 +574,7 @@ $(document).ready(function () { } }, ]; - showConfigsModal(modalData); + showModalConfigs(modalData); } else { saveServerConfigFile(ajax_url, false); } -- cgit v1.2.2