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"
19 show : function(data, cb)
27 this.dialog.show(this.data._el);
30 this.form.setValues(data);
31 this.form.fireEvent('actioncomplete', this.form, { type: 'setdata', data: data });
39 this.dialog = Roo.factory({
40 xtype : 'LayoutDialog',
47 title : _this._strings['0b3e4317865feb6f0224397600b7cafc'] /* Merge Core Enum */,
50 show : function (_self)
58 xtype : 'LayoutRegion',
66 text : _this._strings['ea4788705e6873b424c65e91c2846b19'] /* Cancel */,
78 text : _this._strings['e0aa021e21dddbd6d8cecec71e9cf564'] /* OK */,
82 if(typeof(_this.data._confirm) != 'undefined' && _this.data._confirm * 1 == 1){
83 Roo.MessageBox.confirm(
85 "Are you sure '" + _this.data.display_name + "' Merge with '" + _this.form.findField('_merge_id').getRawValue() + "'",
91 _this.form.doAction('submit');
98 _this.form.doAction('submit');
108 xtype : 'ContentPanel',
118 style : 'margin: 5px',
119 url : baseURL + '/Roo/core_enum.php',
121 actioncomplete : function (_self, action)
123 if (action.type == 'setdata') {
127 if (action.type == 'load') {
128 _this.dialog.el.unmask();
131 if (action.type == 'submit' ) {
132 _this.dialog.el.unmask();
135 if (_this.callback) {
136 _this.callback.call(_this, action.result.data);
141 rendered : function (form)
153 displayField : 'display_name',
155 fieldLabel : _this._strings['03e956f1dca2b4d525df03cb1899cb6f'] /* Merge with */,
156 forceSelection : true,
157 hiddenName : '_merge_id',
160 name : 'merge_display_name',
162 queryParam : 'query[search]',
163 selectOnFocus : true,
164 tpl : '<div class=\"x-grid-cell-text x-btn button\"><b>{display_name}</b> </div>',
165 triggerAction : 'all',
169 render : function (_self)
179 sortInfo : { direction : 'ASC', field: 'display_name' },
181 beforeload : function (_self, o){
182 o.params = o.params || {};
185 o.params.etype = _this.data.etype;
186 o.params['!id'] = _this.data.id;
194 url : baseURL + '/Roo/Core_enum.php',
199 xtype : 'JsonReader',
206 "name":"display_name",
212 totalProperty : 'total',