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.BAdminCoreEnum= function() {}
8 Roo.apply(Pman.Dialog.BAdminCoreEnum.prototype, {
11 'd5cf6a6c4887716d7a14a84d9ba81b02' :"Add / Edit Pulldown Option",
12 'b48968e1c912da07df5e8d6d246291ec' :"Display Name",
13 'ea4788705e6873b424c65e91c2846b19' :"Cancel",
14 '49ee3087348e8d44e1feda1917443987' :"Name",
15 'c9cc8cce247e49bae79f15173ce97354' :"Save"
21 show : function(data, cb)
29 this.dialog.show(this.data._el);
32 this.form.setValues(data);
33 this.form.fireEvent('actioncomplete', this.form, { type: 'setdata', data: data });
41 this.dialog = Roo.factory({
43 cls : 'enable-overflow',
44 title : _this._strings['d5cf6a6c4887716d7a14a84d9ba81b02'] /* Add / Edit Pulldown Option */,
46 '|xns' : 'Roo.bootstrap',
50 html : _this._strings['ea4788705e6873b424c65e91c2846b19'] /* Cancel */,
52 click : function (_self, e)
58 '|xns' : 'Roo.bootstrap'
62 html : _this._strings['c9cc8cce247e49bae79f15173ce97354'] /* Save */,
65 click : function (_self, e)
67 _this.form.doAction("submit");
73 '|xns' : 'Roo.bootstrap'
81 url : baseURL + '/Roo/Core_enum',
83 actioncomplete : function (_self, action)
85 if(action.type == 'setdata') {
87 if(_this.data.id * 1 > 0) {
89 this.doAction('load',{ method: 'GET', params: { '_id' : _this.data.id }});
95 if (action.type == 'load') {
97 _this.data = action.result.data;
103 if (action.type == 'submit') {
107 if (_this.callback) {
108 _this.callback.call(this, action.result.data);
114 actionfailed : function (_self, action)
116 Roo.bootstrap.MessageBox.alert('Error', action.result.errorMsg);
118 render : function (_self)
124 '|xns' : 'Roo.bootstrap',
128 fieldLabel : _this._strings['49ee3087348e8d44e1feda1917443987'] /* Name */,
131 '|xns' : 'Roo.bootstrap'
135 fieldLabel : _this._strings['b48968e1c912da07df5e8d6d246291ec'] /* Display Name */,
136 name : 'display_name',
138 '|xns' : 'Roo.bootstrap'
143 '|xns' : 'Roo.bootstrap'
152 '|xns' : 'Roo.bootstrap'
156 inputType : 'hidden',
159 '|xns' : 'Roo.bootstrap'
163 inputType : 'hidden',
166 '|xns' : 'Roo.bootstrap'
174 Roo.apply(Pman.Dialog.BAdminCoreEnum, Pman.Dialog.BAdminCoreEnum.prototype);