From aa3b2f588ce684739f688363dc05911cecf56adc Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Thu, 24 Nov 2016 14:26:10 +0800 Subject: webui: Update modal box styles --- fg21sim/webui/static/js/main.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'fg21sim/webui/static/js') 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 = $("

"); if (data.icon) { - $("").addClass("icon fa fa-2x") + $("").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($("

Error Code:

") - .append($("") - .addClass("label label-warning") - .text(data.code))); + modalBox.append($("

") + .append($("").text("Code:") + .addClass("label label-warning")) + .append($("").text(data.code))); } if (data.reason) { - modalBox.append($("

Reason:

") - .append($("") - .addClass("label label-warning") - .text(data.reason))); + modalBox.append($("

") + .append($("").text("Reason:") + .addClass("label label-warning")) + .append($("").text(data.reason))); } if (data.buttons) { p = $("

").addClass("button-group"); -- cgit v1.2.2