- var str = this.get('/Editor.buffer').toString();
+ var str = this.get('/Editor.buffer').toString();
+ if (!this.get('/Editor.buffer').checkSyntax()) {
+ this.get('/StandardErrorDialog').show("Fix errors in code and save..");
+ return false;
+ }
+
this.get('/LeftPanel.model').changed( str , false);
this.get('/Editor').dirty = false;
this.get('/Editor.save_button').el.sensitive = false;
this.get('/LeftPanel.model').changed( str , false);
this.get('/Editor').dirty = false;
this.get('/Editor.save_button').el.sensitive = false;