From d18777a229cacfbee9af533de49b24fd3eccff3a Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Mon, 1 Nov 2010 11:24:03 +0800 Subject: [PATCH] Sample/Window.js --- Sample/Window.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Sample/Window.js b/Sample/Window.js index 172a8877c..ee270cf45 100644 --- a/Sample/Window.js +++ b/Sample/Window.js @@ -1973,12 +1973,14 @@ Window=new XObject({ // this.activePath = false; // stop editing!!!! if (this.get('/Editor').dirty) { - if (!this.get('/Editor.buffer').checkSyntax()) { - this.get('/StandardErrorDialog').show("Fix errors in code and save.."); - return true; - // error Dialog + //if (!this.get('/Editor.buffer').checkSyntax()) { + // this.get('/StandardErrorDialog').show("Fix errors in code and save.."); + // return true; + // // error Dialog + //} + if (!this.get('/Editor.view').save()) { + return true; } - this.get('/Editor.view').save(); } this.get('/LeftPanel').editableColumn.items[0].el.stop_editing(); this.get('/LeftPanel').editing = false; -- 2.39.2