提交 aa819cbb 编写于 作者: NoSubject's avatar NoSubject

Merge branch 'fix/scriptEditor_save' into 'develop'

Merge of fix/scriptEditor_save to develop 修复门户脚本保存错误

See merge request o2oa/o2oa!675
......@@ -212,16 +212,17 @@ MWF.xApplication.portal.ScriptDesigner.Script = new Class({
save: function(callback){
if (!this.isSave){
var session = this.editor.editor.getSession();
var annotations = session.getAnnotations();
var validated = true;
for (var i=0; i<annotations.length; i++){
if (annotations[i].type=="error"){
validated = false;
break;
}
}
// var session = this.editor.editor.getSession();
// var annotations = session.getAnnotations();
// var validated = true;
// for (var i=0; i<annotations.length; i++){
// if (annotations[i].type=="error"){
// validated = false;
// break;
// }
// }
var validated = this.editor.validated();
var name = this.designer.propertyNameNode.get("value");
var alias = this.designer.propertyAliasNode.get("value");
var description = this.designer.propertyDescriptionNode.get("value");
......@@ -314,4 +315,4 @@ MWF.xApplication.portal.ScriptDesigner.Script = new Class({
explode: function(){},
implode: function(){}
});
\ No newline at end of file
});
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册