Pman.Tab.CmsProduct.js
[Pman.Cms] / Pman.Dialog.CmsImage.bjs
1 {"xtype":"*Module","app":"Cms","|module":"Pman.Dialog.CmsImage","name":"Pman.Dialog.CmsImage","listeners":{},"items":[{"xtype":"LayoutDialog","|xns":"Roo","background":true,"width":450,"height":120,"title":"Edit Image Details","modal":true,"resizable":false,"collapsible":false,"closable":false,"listeners":{},"items":[{"xtype":"*LayoutRegion","*prop":"center","titlebar":false},{"xtype":"ContentPanel","background":true,"fitToFrame":true,"region":"center","listeners":{},"items":[{"xtype":"Form","style":"margin: 5px","|url":"baseURL + '\/Roo\/Images.php'","method":"POST","listeners":{"|actionfailed":"function (_self, action)\n{\n    _this.dialog.el.unmask();\n    Pman.standardActionFailed(_self, action);\n}\n","|actioncomplete":"function (_self, action)\n{\n   \n   if (action.type =='submit') {\n       \n       _this.dialog.el.unmask();\n       _this.dialog.hide();\n       \n        if (_this.callback) {\n           _this.callback.call(_this, _this.form.getValues());\n        }\n        _this.form.reset();\n        return;\n    }\n}\n","|rendered":"function (_self)\n{\n    _this.form = _self;\n}\n"},"items":[{"name":"linkurl","fieldLabel":"Link URL","width":300,"xtype":"TextField","listeners":{},"vtype":"url"},{"name":"id","xtype":"Hidden","listeners":{}}]}]},{"xtype":"Array","*prop":"buttons","items":[{"text":"Cancel","xtype":"Button","|xns":"Roo","listeners":{"|click":" function() {\n\n                                    _this.form.reset();\n\n                                    _this.dialog.hide();\n\n                                }\n"}},{"text":"OK","xtype":"Button","|xns":"Roo","listeners":{"|click":" function() {\n\n                                    _this.dialog.el.mask(\"Saving\");\n\n                                    _this.form.doAction(\"submit\");\n\n                                }\n"}}]}]}],"title":"Cms - Edit Image"}