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.AdminGeoDivisionEdit = {
10 '59716c97497eb9694541f7c3d37b1a4d' :"Country",
11 '3c1df4260ce594cb5594696461087f2f' :"Select Country",
12 '1243daf593fa297e07ab03bf06d925af' :"Searching...",
13 'ea4788705e6873b424c65e91c2846b19' :"Cancel",
14 '49ee3087348e8d44e1feda1917443987' :"Name",
15 '211ffad4dcc51379ddbc8b96230a9bd9' :"Add / Edit Division",
16 'ca0dbad92a874b2f69b549293387925e' :"Code",
17 'c9cc8cce247e49bae79f15173ce97354' :"Save"
20 'country_name_qtip' : '3c1df4260ce594cb5594696461087f2f' /* Select Country */ ,
21 'country_name_emptyText' : '3c1df4260ce594cb5594696461087f2f' /* Select Country */ ,
22 'code_fieldLabel' : 'ca0dbad92a874b2f69b549293387925e' /* Code */ ,
23 'name_fieldLabel' : '49ee3087348e8d44e1feda1917443987' /* Name */ ,
24 'country_name_loadingText' : '1243daf593fa297e07ab03bf06d925af' /* Searching... */ ,
25 'country_name_fieldLabel' : '59716c97497eb9694541f7c3d37b1a4d' /* Country */
31 show : function(data, cb)
39 this.dialog.show(this.data._el);
42 this.form.setValues(data);
43 this.form.fireEvent('actioncomplete', this.form, { type: 'setdata', data: data });
51 this.dialog = Roo.factory({
52 xtype : 'LayoutDialog',
58 title : _this._strings['211ffad4dcc51379ddbc8b96230a9bd9'] /* Add / Edit Division */,
63 xtype : 'LayoutRegion',
70 text : _this._strings['ea4788705e6873b424c65e91c2846b19'] /* Cancel */,
72 click : function (_self, e)
82 text : _this._strings['c9cc8cce247e49bae79f15173ce97354'] /* Save */,
84 click : function (_self, e)
86 _this.form.doAction("submit");
95 xtype : 'ContentPanel',
104 style : 'margin:10px;',
105 url : baseURL + '/Roo/geoip_division.php',
107 actioncomplete : function(_self, action)
109 if (action.type == 'setdata') {
112 this.load({ method: 'GET', params: { '_id' : _this.data.id }});
116 if (action.type == 'load') {
118 _this.dialog.el.unmask();
120 _this.data = action.result.data;
124 if (action.type =='submit') {
126 _this.dialog.el.unmask();
129 if (_this.callback) {
130 _this.callback.call(_this, _this.form.getValues());
136 rendered : function (form)
147 fieldLabel : _this._strings['ca0dbad92a874b2f69b549293387925e'] /* Code */,
156 fieldLabel : _this._strings['49ee3087348e8d44e1feda1917443987'] /* Name */,
166 displayField : 'lval',
168 emptyText : _this._strings['3c1df4260ce594cb5594696461087f2f'] /* Select Country */,
169 fieldLabel : _this._strings['59716c97497eb9694541f7c3d37b1a4d'] /* Country */,
170 forceSelection : true,
171 hiddenName : 'country',
173 loadingText : _this._strings['1243daf593fa297e07ab03bf06d925af'] /* Searching... */,
175 name : 'country_name',
177 qtip : _this._strings['3c1df4260ce594cb5594696461087f2f'] /* Select Country */,
178 queryParam : 'query[name]',
179 selectOnFocus : true,
180 tpl : '<div class=\"x-grid-cell-text x-btn button\"><b>{lval}</b> </div>',
181 triggerAction : 'all',
190 sortInfo : { direction : 'ASC', field: 'lval' },
192 beforeload : function (_self, o){
193 o.params = o.params || {};
195 o.params.ltype = 'c',
196 o.params.inlang = 'en';
205 url : baseURL + '/Roo/i18n.php',
210 xtype : 'JsonReader',
229 "name":"country_name",
235 totalProperty : 'total',