Clones.bjs
authorAlan Knowles <alan@roojs.com>
Sat, 24 Nov 2012 14:01:49 +0000 (22:01 +0800)
committerAlan Knowles <alan@roojs.com>
Sat, 24 Nov 2012 14:01:49 +0000 (22:01 +0800)
Clones.js

Clones.bjs
Clones.js

index fa3599c..d9dc5fc 100644 (file)
                                             "items": [
                                                 {
                                                     "listeners": {
-                                                        "toggled": "function (self, path) {\n    var ret ={} ;\n    var store = this.get('/reposStore');\n    store.el.get_iter_from_string(ret, path);\n                                                                 \n    var value =   store.el.get_value(ret.iter,5).value.get_boolean();\n                                                                 \n    //print(JSON.stringify(value));\n    store.el.set_value(ret.iter,5, !value);\n      var path =  store.el.get_value(ret.iter, 6).value.get_string();\n     var repo = store.pathToRepo(path);\n     repo.autopush(!value);\n     \n}"
+                                                        "toggled": "function (self, path) {\n    var ret ={} ;\n    var store = this.get('/reposStore');\n    store.el.get_iter_from_string(ret, path);\n                                                                 \n    var value =   store.el.get_value(ret.iter,5).value.get_boolean();\n                                                                 \n    //print(JSON.stringify(value));\n    store.el.set_value(ret.iter,5, !value);\n      var path =  store.el.get_value(ret.iter, 6).value.get_string();\n     var repo = imports.Scm.Repo.Repo.get(path);\n     repo.autopush(!value);\n     \n}"
                                                     },
                                                     "pack": "pack_start",
                                                     "xtype": "CellRendererToggle",
index 9a10dc1..adb3586 100644 (file)
--- a/Clones.js
+++ b/Clones.js
@@ -475,7 +475,7 @@ Clones=new XObject({
                                                     //print(JSON.stringify(value));
                                                     store.el.set_value(ret.iter,5, !value);
                                                       var path =  store.el.get_value(ret.iter, 6).value.get_string();
-                                                     var repo = store.pathToRepo(path);
+                                                     var repo = imports.Scm.Repo.Repo.get(path);
                                                      repo.autopush(!value);
                                                      
                                                 }