Sample/Editor.bjs
authorAlan Knowles <alan@akbkhome.com>
Mon, 1 Nov 2010 03:23:07 +0000 (11:23 +0800)
committerAlan Knowles <alan@akbkhome.com>
Mon, 1 Nov 2010 03:23:07 +0000 (11:23 +0800)
Sample/Editor.bjs

index 6429ecb..09914a4 100644 (file)
@@ -45,7 +45,7 @@
                             "id": "RightEditor",
                             "pack": "add",
                             "xtype": "ScrolledWindow",
-                            "|save": "function() {\n     var str = this.get('/Editor.buffer').toString();\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}\n",
+                            "|save": "function() {\n     var str = this.get('/Editor.buffer').toString();\n     i\n     this.get('/StandardErrorDialog').show(\"Fix errors in code and save..\"); \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}\n",
                             "|xns": "Gtk",
                             "items": [
                                 {