Pman.Dialog.CmsProduct.bjs
authorAlan Knowles <alan@akbkhome.com>
Thu, 9 Sep 2010 10:17:06 +0000 (18:17 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 9 Sep 2010 10:17:06 +0000 (18:17 +0800)
Pman.Dialog.CmsProduct.bjs

index 272172e..539cc1b 100644 (file)
                                             "jsonRoot": "data",
                                             "singleSelect": true,
                                             "xtype": "JsonView",
-                                            "|loadImages": "function() {\n    if (!_this.data.id) {\n         this.clearSelections();\n        this.el.update(\"\");\n        this.jsonData = {};\n        return; \n    } \n\n   this.load({\n        url : baseURL + '/Roo/Images.php',\n        method : 'GET',\n        params : {\n           ontable : 'Product',\n           onid : _this.data.id,\n           'query[imagesize]' : 150\n        },\n        text : 'Loading'\n   });\n   \n}\n",
+                                            "|loadImages": "function() {\n    if (!_this.data.id) {\n         this.clearSelections();\n        this.el.update(\"\");\n        this.jsonData = [];\n        return; \n    } \n\n   this.load({\n        url : baseURL + '/Roo/Images.php',\n        method : 'GET',\n        params : {\n           ontable : 'Product',\n           onid : _this.data.id,\n           'query[imagesize]' : 150\n        },\n        text : 'Loading'\n   });\n   \n}\n",
                                             "|xns": "Roo",
                                             "items": [
                                                 {