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');
85 show : function (_self)
97 xtype : 'ContentPanel',
102 style : 'margin: 5px',
103 url : baseURL + '/Roo/core_enum.php',
107 actioncomplete : function (_self, action)
109 if (action.type == 'setdata') {
113 if (action.type == 'load') {
114 _this.dialog.el.unmask();
117 if (action.type == 'submit' ) {
118 _this.dialog.el.unmask();
121 if (_this.callback) {
122 _this.callback.call(_this, action.result.data);
127 rendered : function (form)
138 url : baseURL + '/Roo/Core_enum.php',
150 "name":"display_name",
156 totalProperty : 'total',
162 sortInfo : { direction : 'ASC', field: 'display_name' },
166 beforeload : function (_self, o){
167 o.params = o.params || {};
170 o.params.etype = _this.data.etype;
171 o.params['!id'] = _this.data.id;
181 displayField : 'display_name',
183 fieldLabel : 'Merge with',
184 forceSelection : true,
185 hiddenName : '_merge_id',
188 name : 'merge_display_name',
190 queryParam : 'query[search]',
191 selectOnFocus : true,
192 tpl : '<div class=\"x-grid-cell-text x-btn button\"><b>{display_name}</b> </div>',
193 triggerAction : 'all',
199 render : function (_self)