From 6658b50c80f512aee429a96a289cecc7a6cdb294 Mon Sep 17 00:00:00 2001 From: Steve Nyemba Date: Tue, 28 May 2024 14:09:35 -0500 Subject: [PATCH] bug fix: modal dialog should be removed --- static/js/menu.js | 1 + templates/dialog.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/static/js/menu.js b/static/js/menu.js index 4b18c6d..dfe809c 100644 --- a/static/js/menu.js +++ b/static/js/menu.js @@ -94,6 +94,7 @@ menu.runScript = function(_id){ jx.utils.patterns.visitor(scripts,function(_item){ if(_item.text.trim().length > 0){ + var _code = eval(_item.text) var id = _id if (_item.parentNode != null){ diff --git a/templates/dialog.html b/templates/dialog.html index a943a5d..837c16a 100644 --- a/templates/dialog.html +++ b/templates/dialog.html @@ -1,6 +1,6 @@
{{title}}
-
+

{{html|safe}}