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.AdminEnumMerge = {
10 '0b3e4317865feb6f0224397600b7cafc' :"Merge Core Enum",
11 'ea4788705e6873b424c65e91c2846b19' :"Cancel",
12 'e0aa021e21dddbd6d8cecec71e9cf564' :"OK"
18 show : function(data, cb)
26 this.dialog.show(this.data._el);
29 this.form.setValues(data);
30 this.form.fireEvent('actioncomplete', this.form, { type: 'setdata', data: data });
38 this.dialog = Roo.factory({
43 xtype : 'LayoutRegion'
52 title : _this._strings['0b3e4317865feb6f0224397600b7cafc'],
55 xtype : 'LayoutDialog',
59 text : _this._strings['ea4788705e6873b424c65e91c2846b19'],
71 text : _this._strings['e0aa021e21dddbd6d8cecec71e9cf564'],
77 var name = _this.form.findField('name').getValue();
78 name = name.toUpperCase().replace(/[^A-Z]+/g, '');
80 Roo.MessageBox.alert("Error","Please fill in a valid name");
83 _this.form.findField('name').setValue(name);
85 _this.form.doAction('submit');
98 xtype : 'ContentPanel',
103 style : 'margin: 5px',
104 url : baseURL + '/Roo/core_enum.php',
108 actioncomplete : function (_self, action)
110 if (action.type == 'setdata') {
114 if (action.type == 'load') {
115 _this.dialog.el.unmask();
118 if (action.type == 'submit' ) {
119 _this.dialog.el.unmask();
122 if (_this.callback) {
123 _this.callback.call(_this, action.result.data);
128 rendered : function (form)