1 //<script type="text/javascript">
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
5 Pman.Dialog.AdminGenericName = {
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',
42 xtype: 'ContentPanel',
50 actioncomplete : function(_self,action)
52 if (action.type == 'setdata') {
53 //_this.dialog.el.mask("Loading");
54 this.url = baseURL + '/Roo/' + _this.data._table;
55 _this.dialog.setTitle(_this.data._title);
58 params: { '_id' : _this.data.id },
63 if (action.type == 'load') {
64 _this.dialog.el.unmask();
65 _this.form.findField('name').focus();
68 if (action.type =='submit') {
70 _this.dialog.el.unmask();
74 _this.callback.call(_this, _this.form.getValues());
80 rendered : function (form)
87 style : 'margin:10px;',
88 url : baseURL + '/Roo/core_company_type.php',
94 specialkey : function (_self, e)
96 if (e.getKey() == 13) {
97 _this.dialog.el.mask("Saving");
98 _this.form.doAction("submit");
117 xtype: 'LayoutRegion',
125 click : function (_self, e)
136 click : function (_self, e)
140 this.url = baseURL + '/Roo/' + _this.data._table;
141 _this.dialog.el.mask("Saving");
142 _this.form.doAction("submit");