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'),
94 url : baseURL + '/Roo/Core_enum',
96 _delete : ids.join(',')
98 success : function() {
99 _this.grid.footer.onClick('refresh');
105 _this.form.doAction('submit');
118 xtype : 'ContentPanel',
122 style : 'margin: 5px',
123 url : baseURL + '/Roo/core_enum.php',
128 actioncomplete : function (_self, action)
130 if (action.type == 'setdata') {
134 if (action.type == 'load') {
135 _this.dialog.el.unmask();
138 if (action.type == 'submit' ) {
139 _this.dialog.el.unmask();
142 if (_this.callback) {
143 _this.callback.call(_this, action.result.data);
148 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',
175 render : function (_self)
182 sortInfo : { direction : 'ASC', field: 'display_name' },
187 beforeload : function (_self, o){
188 o.params = o.params || {};
191 o.params.etype = _this.data.etype;
192 o.params['!id'] = _this.data.id;
197 url : baseURL + '/Roo/Core_enum.php',
209 "name":"display_name",
215 totalProperty : 'total',