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'],
78 _this.form.doAction('submit');
91 xtype : 'ContentPanel',
96 style : 'margin: 5px',
97 url : baseURL + '/Roo/core_enum.php',
101 actioncomplete : function (_self, action)
103 if (action.type == 'setdata') {
107 if (action.type == 'load') {
108 _this.dialog.el.unmask();
111 if (action.type == 'submit' ) {
112 _this.dialog.el.unmask();
115 if (_this.callback) {
116 _this.callback.call(_this, action.result.data);
121 rendered : function (form)
132 url : baseURL + '/Roo/Core_enum.php',
144 "name":"display_name",
150 totalProperty : 'total',
156 sortInfo : { direction : 'ASC', field: 'display_name' },
160 beforeload : function (_self, o){
161 o.params = o.params || {};
164 o.params.etype = _this.data.etype;
165 o.params['!id'] = _this.data.id;
175 displayField : 'display_name',
177 fieldLabel : 'Merge with',
178 forceSelection : true,
179 hiddenName : '_merge_id',
182 name : 'merge_display_name',
184 queryParam : 'query[search]',
185 selectOnFocus : true,
186 tpl : '<div class=\"x-grid-cell-text x-btn button\"><b>{display_name}</b> </div>',
187 triggerAction : 'all',