From daaeb7cf053804dfe7e87dff545b6fdaf5568ed5 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Tue, 22 Nov 2016 17:45:52 +0800 Subject: webui: Update against the improved "showModal()" --- fg21sim/webui/static/js/console.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'fg21sim/webui/static/js/console.js') diff --git a/fg21sim/webui/static/js/console.js b/fg21sim/webui/static/js/console.js index 4b2d1b7..71603ed 100644 --- a/fg21sim/webui/static/js/console.js +++ b/fg21sim/webui/static/js/console.js @@ -149,7 +149,7 @@ var getServerTaskStatus = function (url) { .fail(function (jqxhr) { var modalData = {}; modalData.icon = "times-circle"; - modalData.message = "Failed to get the task status!"; + modalData.contents = "Failed to get the task status!"; modalData.code = jqxhr.status; modalData.reason = jqxhr.statusText; showModalConsole(modalData); @@ -172,7 +172,7 @@ var startServerTask = function (url, task, kwargs) { .fail(function (jqxhr) { var modalData = {}; modalData.icon = "times-circle"; - modalData.message = "Failed to start the task!"; + modalData.contents = "Failed to start the task!"; modalData.code = jqxhr.status; modalData.reason = jqxhr.statusText; showModalConsole(modalData); @@ -219,14 +219,14 @@ $(document).ready(function () { // Popup a modal notification var modalData = {}; modalData.icon = "check-circle"; - modalData.message = "Simulation task successfully finished."; + modalData.contents = "Simulation task successfully finished."; showModalConfigs(modalData); }); }); } else { var modalData = {}; modalData.icon = "times-circle"; - modalData.message = ("Exist invalid configuration values! " + + modalData.contents = ("Exist invalid configuration values! " + "Please correct the configurations " + "before starting the task"); showModalConsole(modalData); @@ -257,7 +257,7 @@ $(document).ready(function () { $("#log-delete").on("click", function () { var modalData = {}; modalData.icon = "warning"; - modalData.message = ("Are you sure to delete all logging messages?"); + modalData.contents = "Are you sure to delete all logging messages?"; modalData.buttons = [ { text: "Cancel", -- cgit v1.2.2