aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/webui/static/js/main.js
diff options
context:
space:
mode:
authorAaron LI <aaronly.me@outlook.com>2016-11-17 23:23:30 +0800
committerAaron LI <aaronly.me@outlook.com>2016-11-17 23:23:30 +0800
commita5d249c0bbe0b3b51930cb23f010a17bdf0dc198 (patch)
tree48686c0d0a9c19e8370b41bc30284793a198d655 /fg21sim/webui/static/js/main.js
parent0b92218c5b815abf9c9e7cb8168a1d2f01912eb8 (diff)
downloadfg21sim-a5d249c0bbe0b3b51930cb23f010a17bdf0dc198.tar.bz2
webui: Fix a bug for "showModal()"; Cleanup ".onmessage()"
Diffstat (limited to 'fg21sim/webui/static/js/main.js')
-rw-r--r--fg21sim/webui/static/js/main.js2
1 files changed, 1 insertions, 1 deletions
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();
};