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 '03e956f1dca2b4d525df03cb1899cb6f' :"Merge with",
12 'ea4788705e6873b424c65e91c2846b19' :"Cancel",
13 'e0aa021e21dddbd6d8cecec71e9cf564' :"OK"
16 'merge_display_name_fieldLabel' : '03e956f1dca2b4d525df03cb1899cb6f' /* Merge with */
22 show : function(data, cb)
30 this.dialog.show(this.data._el);
33 this.form.setValues(data);
34 this.form.fireEvent('actioncomplete', this.form, { type: 'setdata', data: data });
42 this.dialog = Roo.factory({
43 xtype : 'LayoutDialog',
50 title : _this._strings['0b3e4317865feb6f0224397600b7cafc'] /* Merge Core Enum */,
53 show : function (_self)
61 xtype : 'LayoutRegion',
69 text : _this._strings['ea4788705e6873b424c65e91c2846b19'] /* Cancel */,
81 text : _this._strings['e0aa021e21dddbd6d8cecec71e9cf564'] /* OK */,
85 if(typeof(_this.data._confirm) != 'undefined' && _this.data._confirm * 1 == 1){
86 Roo.MessageBox.confirm(
88 "Are you sure '" + _this.data.display_name + "' Merge with '" + _this.form.findField('_merge_id').getRawValue() + "'",
94 _this.form.doAction('submit');
101 _this.form.doAction('submit');
111 xtype : 'ContentPanel',
121 style : 'margin: 5px',
122 url : baseURL + '/Roo/core_enum.php',
124 actioncomplete : function (_self, action)
126 if (action.type == 'setdata') {
130 if (action.type == 'load') {
131 _this.dialog.el.unmask();
134 if (action.type == 'submit' ) {
135 _this.dialog.el.unmask();
138 if (_this.callback) {
139 _this.callback.call(_this, action.result.data);
144 rendered : function (form)
156 displayField : 'display_name',
158 fieldLabel : _this._strings['03e956f1dca2b4d525df03cb1899cb6f'] /* Merge with */,
159 forceSelection : true,
160 hiddenName : '_merge_id',
163 name : 'merge_display_name',
165 queryParam : 'query[search]',
166 selectOnFocus : true,
167 tpl : '<div class=\"x-grid-cell-text x-btn button\"><b>{display_name}</b> </div>',
168 triggerAction : 'all',
172 render : function (_self)
182 sortInfo : { direction : 'ASC', field: 'display_name' },
184 beforeload : function (_self, o){
185 o.params = o.params || {};
188 o.params.etype = _this.data.etype;
189 o.params['!id'] = _this.data.id;
190 o.params.name = _this.data.name;
198 url : baseURL + '/Roo/Core_enum.php',
203 xtype : 'JsonReader',
210 "name":"display_name",
216 totalProperty : 'total',