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

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

index c166a6c..eb6b834 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: 'Companies', \n         onid: sel.data.id,\n    imgtype : 'PressRelease'\n     }, \n    function(data) {\n                if (!data) { return; } \n     Pman.Dialog.PressReleaseImage.show( data, function() {\n                  _this.grid.footer.onClick('first');\n\n            }); \n                }); \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         \n    }); \n\n}       "
                                             },
                                             "cls": "x-btn-text-icon",
                                             "text": "Add",
index 7ca4f76..5b7ee83 100644 (file)
@@ -201,25 +201,21 @@ Pman.Dialog.AdminEnumImages = {
                                     xns: Roo.Toolbar,
                                     listeners : {
                                         click : function()
-                                                {
+                                        {
                                                     
-                                              var sel = Pman.Tab.PressReleaseCompanies  ? Pman.Tab.PressReleaseCompanies.grid.getSelectionModel().getSelected() : false
+                                            //var sel = Pman.Tab.PressReleaseCompanies  ? Pman.Tab.PressReleaseCompanies.grid.getSelectionModel().getSelected() : false
                                              
-                                            Pman.Dialog.Image.show( {
-                                               id : 0, 
-                                                ontable: 'Companies', 
-                                                 onid: sel.data.id,
-                                            imgtype : 'PressRelease'
-                                             }, 
-                                            function(data) {
-                                                        if (!data) { return; } 
-                                             Pman.Dialog.PressReleaseImage.show( data, function() {
-                                                          _this.grid.footer.onClick('first');
+                                            Pman.Dialog.Image.show({
+                                                id : 0, 
+                                                ontable: 'core_enum',
+                                                onid: _this.data.onid,
+                                                imgtype : ''
+                                            }, function(data){
+                                                if (!data) { return; } 
+                                                 
+                                            }); 
                                         
-                                                    }); 
-                                                        }); 
-                                        
-                                                }
+                                        }
                                     },
                                     cls : 'x-btn-text-icon',
                                     text : "Add",