1 //<script type="text/javascript">
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
5 Pman.Dialog.CoreCompanies = {
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',
40 title : "Edit Companies",
44 xtype: 'ContentPanel',
52 actionfailed : function(f, act) {
53 _this.dialog.el.unmask();
55 Pman.standardActionFailed(f,act);
58 actioncomplete : function(f, act) {
59 _this.dialog.el.unmask();
60 //console.log('load completed');
61 // error messages?????
64 if (act.type == 'load') {
66 _this.data = act.result.data;
67 var meth = _this.data.isOwner || !Pman.Login.isOwner() ? 'disable' : 'enable';
70 if (_this.form.findField('comptype')) {
71 _this.form.findField('comptype')[meth]();
79 if (act.type == 'submit') { // only submitted here if we are
83 _this.callback.call(this, act.result.data);
97 xtype: 'LayoutRegion',
99 alwaysShowTabs : false,