aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/webui/static/js
diff options
context:
space:
mode:
authorAaron LI <aaronly.me@outlook.com>2016-11-24 14:26:10 +0800
committerAaron LI <aaronly.me@outlook.com>2016-11-24 14:26:10 +0800
commitaa3b2f588ce684739f688363dc05911cecf56adc (patch)
treed81a3817eeaf77b06f8fa54edac8b3decd7f7b34 /fg21sim/webui/static/js
parent2a1be466fb989f9485468e30ddb40a68f3de8772 (diff)
downloadfg21sim-aa3b2f588ce684739f688363dc05911cecf56adc.tar.bz2
webui: Update modal box styles
Diffstat (limited to 'fg21sim/webui/static/js')
-rw-r--r--fg21sim/webui/static/js/main.js18
1 files changed, 9 insertions, 9 deletions
diff --git a/fg21sim/webui/static/js/main.js b/fg21sim/webui/static/js/main.js
index f0755c2..e6e68c4 100644
--- a/fg21sim/webui/static/js/main.js
+++ b/fg21sim/webui/static/js/main.js
@@ -187,7 +187,7 @@ var showModal = function (modalBox, data) {
modalBox.html("");
var p = $("<p>");
if (data.icon) {
- $("<span>").addClass("icon fa fa-2x")
+ $("<span>").addClass("icon fa")
.addClass("fa-" + data.icon).appendTo(p);
}
if (data.title) {
@@ -204,16 +204,16 @@ var showModal = function (modalBox, data) {
}
}
if (data.code) {
- modalBox.append($("<p>Error Code: </p>")
- .append($("<span>")
- .addClass("label label-warning")
- .text(data.code)));
+ modalBox.append($("<p>")
+ .append($("<span>").text("Code:")
+ .addClass("label label-warning"))
+ .append($("<span>").text(data.code)));
}
if (data.reason) {
- modalBox.append($("<p>Reason: </p>")
- .append($("<span>")
- .addClass("label label-warning")
- .text(data.reason)));
+ modalBox.append($("<p>")
+ .append($("<span>").text("Reason:")
+ .addClass("label label-warning"))
+ .append($("<span>").text(data.reason)));
}
if (data.buttons) {
p = $("<p>").addClass("button-group");