BUG 6772 Fix error javascript code editor.
This commit is contained in:
@@ -25,6 +25,7 @@ var dynaformEditor={
|
||||
mainPanel.elements.headerBar.appendChild(this.toolbar);
|
||||
mainPanel.events.remove = function(){
|
||||
}
|
||||
this.changeToJavascripts();
|
||||
this.refresh_preview();
|
||||
},
|
||||
_review:function()
|
||||
@@ -294,7 +295,9 @@ var dynaformEditor={
|
||||
case "xmlcode":this.refresh_xmlcode();break;
|
||||
case "fieldslist":this.refreshFieldsList();break;
|
||||
case "javascripts": this.changeJavascriptCode();
|
||||
this.refreshJavascripts();break;
|
||||
this.changeToJavascripts();
|
||||
// this.refreshJavascripts();
|
||||
break;
|
||||
case "properties":this.refreshProperties();break;
|
||||
}
|
||||
},
|
||||
@@ -409,6 +412,7 @@ var dynaformEditor={
|
||||
{
|
||||
//if (JSCodePress)
|
||||
if( jsEditor ) {
|
||||
if(typeof jsEditor.setCode == 'function')
|
||||
jsEditor.setCode(newCode);
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user