projects
/
app.Builder.js
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
75aed20
)
Sample/Window.js
author
Alan Knowles
<alan@akbkhome.com>
Mon, 1 Nov 2010 02:36:14 +0000
(10:36 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Mon, 1 Nov 2010 02:36:14 +0000
(10:36 +0800)
Sample/Window.js
patch
|
blob
|
history
diff --git
a/Sample/Window.js
b/Sample/Window.js
index
6e52da0
..
fb94379
100644
(file)
--- a/
Sample/Window.js
+++ b/
Sample/Window.js
@@
-1972,6
+1972,14
@@
Window=new XObject({
// this.activePath = false;
// stop editing!!!!
+ if (this.get('/Editor').dirty) {
+ if (!this.get('/Editor.view').checkSyntax()) {
+ this.get('/StandardErrorDialog').show("Fix errors in code and save..");
+ return;
+ // error Dialog
+ }
+ this.get('/Editor.view').save();
+ }
this.get('/LeftPanel').editableColumn.items[0].el.stop_editing();
this.get('/LeftPanel').editing = false;