1 //<script type="text/javascript">
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
5 Pman.Dialog.CoreEnum = {
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)
45 title : "Add / Edit Core Enum",
49 xtype: 'ContentPanel',
59 actioncomplete : function (_self, action)
61 if (action.type == 'setdata') {
62 //_this.dialog.el.mask("Loading");
63 //this.load({ method: 'GET', params: { '_id' : _this.data.id }});
65 // this is 'new' only!!!
70 if (action.type == 'load') {
71 _this.dialog.el.unmask();
74 if (action.type == 'submit' ) {
75 _this.dialog.el.unmask();
79 _this.callback.call(_this, action.result.data);
84 rendered : function (form)
90 style : 'margin: 5px',
91 url : baseURL + '/Roo/core_enum.php',
105 fieldLabel : 'Industry Name',
106 name : 'display_name',
120 xtype: 'LayoutRegion',
142 var name = _this.form.findField('display_name').getValue();
143 name = name.toUpperCase().replace(/[^A-Z]+/g, '');
145 Roo.MessageBox.alert("Error","Please fill in a valid name");
148 _this.form.findField('name').setValue(name);
151 _this.form.doAction('submit');