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.AdminGenericName = {
12 show : function(data, cb)
20 this.dialog.show(this.data._el);
23 this.form.setValues(data);
24 this.form.fireEvent('actioncomplete', this.form, { type: 'setdata', data: data });
32 this.dialog = Roo.factory({
35 xtype : 'LayoutRegion',
42 xtype : 'LayoutDialog',
55 click : function (_self, e)
67 click : function (_self, e)
71 this.url = baseURL + '/Roo/' + _this.data._table;
72 _this.dialog.el.mask("Saving");
73 _this.form.doAction("submit");
83 xtype : 'ContentPanel',
88 url : baseURL + '/Roo/core_company_type.php',
89 style : 'margin:10px;',
95 actioncomplete : function(_self,action)
97 if (action.type == 'setdata') {
98 //_this.dialog.el.mask("Loading");
99 this.url = baseURL + '/Roo/' + _this.data._table;
100 _this.dialog.setTitle(_this.data._title);
103 params: { '_id' : _this.data.id },
108 if (action.type == 'load') {
109 _this.dialog.el.unmask();
110 _this.form.findField('name').focus();
113 if (action.type =='submit') {
115 _this.dialog.el.unmask();
118 if (_this.callback) {
119 _this.callback.call(_this, _this.form.getValues());
125 rendered : function (form)
139 specialkey : function (_self, e)
141 if (e.getKey() == 13) {
142 _this.dialog.el.mask("Saving");
143 _this.form.doAction("submit");