From dd1b914ee8624977709deb86cd7f64478fd732a5 Mon Sep 17 00:00:00 2001 From: Hector Cortez Date: Mon, 1 Oct 2012 14:36:55 -0400 Subject: [PATCH] BUG Move "Enable HTML Editing" checkbox, "Restore Original HTML" SOLVED - Move "Enable HTML Editing" checkbox, "Restore Original HTML" and "Refresh view" buttons to top of "HTML" tab in DynaForm Editor. - Added messageBox of alert. --- .../xmlform/dynaforms/dynaforms_HtmlEditor.xml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/workflow/engine/xmlform/dynaforms/dynaforms_HtmlEditor.xml b/workflow/engine/xmlform/dynaforms/dynaforms_HtmlEditor.xml index 1cff5a631..bb743aeec 100755 --- a/workflow/engine/xmlform/dynaforms/dynaforms_HtmlEditor.xml +++ b/workflow/engine/xmlform/dynaforms/dynaforms_HtmlEditor.xml @@ -73,7 +73,18 @@ getField("PME_HTML_ENABLETEMPLATE","dynaforms_HtmlEditor").onclick=function() { /*getField("ENABLETEMPLATE","dynaforms_Properties").checked=this.checked; dynaformEditor.saveProperties();*/ - dynaformEditor.setEnableTemplate( this.checked ); + if (getField("PME_HTML_ENABLETEMPLATE","dynaforms_HtmlEditor").checked == true) { + new leimnud.module.app.confirm().make( + { + label: "@G::LoadTranslation(ID_MSG_ENABLE_HTML_EDITING)", + size:{ w: 350, h: 150 }, + action: function() { }, + cancel: function() { + getField("PME_HTML_ENABLETEMPLATE","dynaforms_HtmlEditor").checked = false; + } + }); + dynaformEditor.setEnableTemplate( this.checked ); + } } ]]>