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({
46 title : _this._strings['0b3e4317865feb6f0224397600b7cafc'] /* Merge Core Enum */,
50 xtype : 'LayoutDialog',
52 show : function (_self)
61 xtype : 'LayoutRegion'
65 text : _this._strings['ea4788705e6873b424c65e91c2846b19'] /* Cancel */,
77 text : _this._strings['e0aa021e21dddbd6d8cecec71e9cf564'] /* OK */,
84 if(typeof(_this.data._confirm) != 'undefined' && _this.data._confirm * 1 == 1){
85 Roo.MessageBox.confirm(
87 "Are you sure '" + _this.data.display_name + "' Merge with '" + _this.form.findField('_merge_id').getRawValue() + "'",
93 _this.form.doAction('submit');
100 _this.form.doAction('submit');
113 xtype : 'ContentPanel',
117 style : 'margin: 5px',
118 url : baseURL + '/Roo/core_enum.php',
123 actioncomplete : function (_self, action)
125 if (action.type == 'setdata') {
129 if (action.type == 'load') {
130 _this.dialog.el.unmask();
133 if (action.type == 'submit' ) {
134 _this.dialog.el.unmask();
137 if (_this.callback) {
138 _this.callback.call(_this, action.result.data);
143 rendered : function (form)
152 displayField : 'display_name',
154 fieldLabel : _this._strings['03e956f1dca2b4d525df03cb1899cb6f'] /* Merge with */,
155 forceSelection : true,
156 hiddenName : '_merge_id',
159 name : 'merge_display_name',
161 queryParam : 'query[search]',
162 selectOnFocus : true,
163 tpl : '<div class=\"x-grid-cell-text x-btn button\"><b>{display_name}</b> </div>',
164 triggerAction : 'all',
171 render : function (_self)
178 sortInfo : { direction : 'ASC', field: 'display_name' },
183 beforeload : function (_self, o){
184 o.params = o.params || {};
187 o.params.etype = _this.data.etype;
188 o.params['!id'] = _this.data.id;
193 url : baseURL + '/Roo/Core_enum.php',
205 "name":"display_name",
211 totalProperty : 'total',