diff options
Diffstat (limited to 'fg21sim/webui/static/js/main.js')
-rw-r--r-- | fg21sim/webui/static/js/main.js | 18 |
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"); |