BUG 7708 JavaScript executes twice when in preview mode of the DynaForm Editor

This problem was fixed. now the JavaScript only executes once when the DynaForm is first loaded.
This commit is contained in:
Carlos Pacha
2011-09-28 12:36:19 -04:00
parent 5f1010d008
commit 377e9a99d9

View File

@@ -25,7 +25,10 @@ var dynaformEditor={
mainPanel.elements.headerBar.appendChild(this.toolbar);
mainPanel.events.remove = function(){
}
this.refresh_preview();
// note added by krlos pacha carlos[at]colosa[dot]com
// the following line of code has been commented because it was executing twice the JavaScript code
// when the DynaForm was first loaded.
// this.refresh_preview();
this.changeToJavascripts();
this.changeToPreview();
},