X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Sample%2FEditor.bjs;h=29abc18dee366d79c2866fd3d003f67c0059c051;hb=e1b31be32aedc15a1ba1064d4dddbcf9c5ae2344;hp=c83e892d0e6d525923a41a90b0763bd5e7e46ed8;hpb=32bcf90b2ccb15e2c0a54683f83e9fe5f7e3d5c3;p=app.Builder.js diff --git a/Sample/Editor.bjs b/Sample/Editor.bjs index c83e892d0..29abc18de 100644 --- a/Sample/Editor.bjs +++ b/Sample/Editor.bjs @@ -45,7 +45,7 @@ "id": "RightEditor", "pack": "add", "xtype": "ScrolledWindow", - "|save": "function() {\n var str = this.get('/Editor.buffer').toString();\n if (!this.get('/Editor.buffer').checkSyntax()) {\n this.get('/StandardErrorDialog').show(\"Fix errors in code and save..\"); \n }\n \n this.get('/LeftPanel.model').changed( str , false);\n this.get('/Editor').dirty = false;\n this.get('/Editor.save_button').el.sensitive = false;\n return true;\n}\n", + "|save": "function() {\n var str = this.get('/Editor.buffer').toString();\n if (!this.get('/Editor.buffer').checkSyntax()) {\n this.get('/StandardErrorDialog').show(\"Fix errors in code and save..\"); \n return false;\n }\n \n this.get('/LeftPanel.model').changed( str , false);\n this.get('/Editor').dirty = false;\n this.get('/Editor.save_button').el.sensitive = false;\n return true;\n}\n", "|xns": "Gtk", "items": [ {