Pman.Dialog.AdminEnumImages.bjs
authorChris <chris@roojs.com>
Fri, 5 Jul 2013 05:38:30 +0000 (13:38 +0800)
committerChris <chris@roojs.com>
Fri, 5 Jul 2013 05:38:30 +0000 (13:38 +0800)
Pman.Dialog.AdminEnumImages.js

Pman.Dialog.AdminEnumImages.bjs
Pman.Dialog.AdminEnumImages.js

index c2b2e15..2a0d6fa 100644 (file)
@@ -90,7 +90,7 @@
                                     "items": [
                                         {
                                             "listeners": {
-                                                "|click": "function()\n{\n            \n    //var sel = Pman.Tab.PressReleaseCompanies  ? Pman.Tab.PressReleaseCompanies.grid.getSelectionModel().getSelected() : false\n     \n    Pman.Dialog.Image.show({\n        id : 0, \n        ontable: 'core_enum',\n        onid: _this.data.onid,\n        imgtype : ''\n    }, function(data){\n        if (!data) { return; } \n        _this\n    }); \n\n}       "
+                                                "|click": "function()\n{\n            \n    //var sel = Pman.Tab.PressReleaseCompanies  ? Pman.Tab.PressReleaseCompanies.grid.getSelectionModel().getSelected() : false\n     \n    Pman.Dialog.Image.show({\n        id : 0, \n        ontable: 'core_enum',\n        onid: _this.data.onid,\n        imgtype : ''\n    }, function(data){\n        if (!data) { return; } \n        _this.grid.footer.onClick('first');\n    }); \n\n}       "
                                             },
                                             "cls": "x-btn-text-icon",
                                             "text": "Add",
index cfa9d6c..06073db 100644 (file)
@@ -212,7 +212,7 @@ Pman.Dialog.AdminEnumImages = {
                                                 imgtype : ''
                                             }, function(data){
                                                 if (!data) { return; } 
-                                                _this
+                                                _this.grid.footer.onClick('first');
                                             }); 
                                         
                                         }