|
|
@@ -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(){}
|
|
|
|
|
|
-});
|
|
|
+});
|