aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/webui/static/js/console.js
diff options
context:
space:
mode:
authorAaron LI <aaronly.me@outlook.com>2016-11-22 17:45:52 +0800
committerAaron LI <aaronly.me@outlook.com>2016-11-22 17:45:52 +0800
commitdaaeb7cf053804dfe7e87dff545b6fdaf5568ed5 (patch)
treebabf97b0fedd9dd1784c1e81ebdd1791ba02b1c9 /fg21sim/webui/static/js/console.js
parent7f7c3a011d05669536354686af37643986e9c27f (diff)
downloadfg21sim-daaeb7cf053804dfe7e87dff545b6fdaf5568ed5.tar.bz2
webui: Update against the improved "showModal()"
Diffstat (limited to 'fg21sim/webui/static/js/console.js')
-rw-r--r--fg21sim/webui/static/js/console.js10
1 files changed, 5 insertions, 5 deletions
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",