1 //<script type="text/javascript">
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
5 Roo.namespace('Pman.Dialog');
7 Pman.Dialog.AddChildElementToPage = {
10 '2d7f1475d69868c106ba9ee5006e76de' :"Edit / Create Category Type",
11 'ea4788705e6873b424c65e91c2846b19' :"Cancel",
12 '49ee3087348e8d44e1feda1917443987' :"Name",
13 'c9cc8cce247e49bae79f15173ce97354' :"Save"
19 show : function(data, cb)
27 this.dialog.show(this.data._el);
30 this.form.setValues(data);
31 this.form.fireEvent('actioncomplete', this.form, { type: 'setdata', data: data });
39 this.dialog = Roo.factory({
40 xtype : 'LayoutDialog',
45 title : _this._strings['2d7f1475d69868c106ba9ee5006e76de'] /* Edit / Create Category Type */,
48 show : function (_self)
50 this.form.findField('name').focus();
57 xtype : 'LayoutRegion',
64 text : _this._strings['ea4788705e6873b424c65e91c2846b19'] /* Cancel */,
66 click : function (_self, e)
76 text : _this._strings['c9cc8cce247e49bae79f15173ce97354'] /* Save */,
78 click : function (_self, e)
83 _this.dialog.el.mask("Saving");
84 _this.form.doAction("submit");
94 xtype : 'ContentPanel',
102 style : 'margin:10px;',
103 url : baseURL + '/Roo/cms_category_type.php',
105 actioncomplete : function(_self,action)
107 if (action.type == 'setdata') {
108 //_this.dialog.el.mask("Loading");
109 //this.load({ method: 'GET', params: { '_id' : _this.data.id }});
112 if (action.type == 'load') {
113 _this.dialog.el.unmask();
116 if (action.type =='submit') {
118 _this.dialog.el.unmask();
121 if (_this.callback) {
122 _this.callback.call(_this, _this.form.getValues());
128 rendered : function (form)
138 fieldLabel : _this._strings['49ee3087348e8d44e1feda1917443987'] /* Name */,