FixBug.bjs
authorAlan Knowles <alan@akbkhome.com>
Wed, 30 Mar 2011 11:21:04 +0000 (19:21 +0800)
committerAlan Knowles <alan@akbkhome.com>
Wed, 30 Mar 2011 11:21:04 +0000 (19:21 +0800)
FixBug.bjs

index 02442ce..ac9f7d5 100644 (file)
@@ -17,7 +17,7 @@
             "xtype": "Dialog",
             "|deletable": true,
             "|modal": true,
-            "|show": "function(c) {\n    \n    if (!this.el) {\n        this.init();\n    }\n    var _this = this;\n    /*[ 'xtype'  ].forEach(function(k) {\n        _this.get(k).setValue(typeof(c[k]) == 'undefined' ? '' : c[k]);\n    });\n\t// shouild set path..\n    */\n    this.el.show_all();\n    \n    // block until we return.\n    this.el.run();\n    \n    print(JSON.stringify(this.get('bug').getValue()));\n    \n    //this.success = c.success;\n}\n",
+            "|show": "function(c) {\n    \n    if (!this.el) {\n        this.init();\n    }\n    var _this = this;\n    /*[ 'xtype'  ].forEach(function(k) {\n        _this.get(k).setValue(typeof(c[k]) == 'undefined' ? '' : c[k]);\n    });\n\t// shouild set path..\n    */\n    this.el.show_all();\n    \n    // block until we return.\n    this.el.run();\n    \n    //print(JSON.stringify(this.get('bug').getValue()));\n    return this.get('bug').getValue();\n    //this.success = c.success;\n}\n",
             "|xns": "Gtk",
             "items": [
                 {