FixBug.bjs
authorAlan Knowles <alan@roojs.com>
Sun, 9 Dec 2012 14:39:46 +0000 (22:39 +0800)
committerAlan Knowles <alan@roojs.com>
Sun, 9 Dec 2012 14:39:46 +0000 (22:39 +0800)
FixBug.js

FixBug.bjs
FixBug.js

index b59069b..6f158f5 100644 (file)
@@ -17,7 +17,7 @@
             "xtype": "Window",
             "|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\n    \n    this.el.show_all();\n    this.get('/ok_button').el.set_sensitive(false);\n    \n    // block until we return.\n    //    var run_ret = this.el.run();\n    //    if (run_ret < 1 ) {\n    //        return false;\n    //    }\n    //    print(\"RUN RETURN : \" + run_ret);\n    \n    //print(JSON.stringify(this.get('bug').getValue()));\n    //return this.get('bug').getValue();\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\n    \n    this.el.show_all();\n   // this.get('/ok_button').el.set_sensitive(false);\n    \n    // block until we return.\n    //    var run_ret = this.el.run();\n    //    if (run_ret < 1 ) {\n    //        return false;\n    //    }\n    //    print(\"RUN RETURN : \" + run_ret);\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": [
                 {
index e52d2c4..af02794 100644 (file)
--- a/FixBug.js
+++ b/FixBug.js
@@ -44,7 +44,7 @@ FixBug=new XObject({
     
         
         this.el.show_all();
-        this.get('/ok_button').el.set_sensitive(false);
+       // this.get('/ok_button').el.set_sensitive(false);
         
         // block until we return.
         //    var run_ret = this.el.run();