From: Alan Knowles Date: Mon, 1 Nov 2010 02:42:28 +0000 (+0800) Subject: Sample/Editor.bjs X-Git-Url: http://git.roojs.org/?a=commitdiff_plain;h=7aa305d0db5862cb561ba1fcbb8763f43bf32000;p=app.Builder.js Sample/Editor.bjs --- diff --git a/Sample/Editor.bjs b/Sample/Editor.bjs index 34ae152ba..4c65658a8 100644 --- a/Sample/Editor.bjs +++ b/Sample/Editor.bjs @@ -66,7 +66,7 @@ "items": [ { "listeners": { - "changed": "function (self) {\n\n this.checkSyntax();\n // print(\"EDITOR CHANGED\");\n this.get('/Editor').dirty = true;\n\n // this.get('/LeftPanel.model').changed( str , false);\n return false;\n}" + "changed": "function (self) {\n\n if(this.checkSyntax()) {\n this.get('/Editor.save_button').el.sensitive = true;\n }\n // print(\"EDITOR CHANGED\");\n this.get('/Editor').dirty = true;\n\n // this.get('/LeftPanel.model').changed( str , false);\n return false;\n}" }, "id": "buffer", "pack": "set_buffer",