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.
This commit is contained in:
Hector Cortez
2012-10-01 14:36:55 -04:00
parent 556cca6672
commit dd1b914ee8

View File

@@ -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 );
}
}
]]></PME_RESIZE_JS>