From a5d249c0bbe0b3b51930cb23f010a17bdf0dc198 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Thu, 17 Nov 2016 23:23:30 +0800 Subject: webui: Fix a bug for "showModal()"; Cleanup ".onmessage()" --- fg21sim/webui/static/js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fg21sim/webui/static/js/main.js') diff --git a/fg21sim/webui/static/js/main.js b/fg21sim/webui/static/js/main.js index 8d843a9..27638a7 100644 --- a/fg21sim/webui/static/js/main.js +++ b/fg21sim/webui/static/js/main.js @@ -142,8 +142,8 @@ var showModal = function (modalBox, data) { .attr("type", "button") .on("click", btn.click).appendTo(p); }); + modalBox.append(p); } - modalBox.append(p); // Show the modal box modalBox.modal(); }; -- cgit v1.2.2