1 //<script type="text/javascript">
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
5 Pman.Dialog.CmsCategoryType = {
10 show : function(data, cb)
18 this.dialog.show(this.data._el);
21 this.form.setValues(data);
22 this.form.fireEvent('actioncomplete', this.form, { type: 'setdata', data: data });
30 this.dialog = Roo.factory({
31 xtype: 'LayoutDialog',
34 show : function (_self)
36 this.form.findField('name').focus();
44 title : "Edit / Create Category Type",
48 xtype: 'ContentPanel',
56 actioncomplete : function(_self,action)
58 if (action.type == 'setdata') {
59 //_this.dialog.el.mask("Loading");
60 //this.load({ method: 'GET', params: { '_id' : _this.data.id }});
63 if (action.type == 'load') {
64 _this.dialog.el.unmask();
67 if (action.type =='submit') {
69 _this.dialog.el.unmask();
73 _this.callback.call(_this, _this.form.getValues());
79 rendered : function (form)
85 style : 'margin:10px;',
86 url : baseURL + '/Roo/cms_category_type.php',
106 xtype: 'LayoutRegion',
114 click : function (_self, e)
125 click : function (_self, e)
130 _this.dialog.el.mask("Saving");
131 _this.form.doAction("submit");