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.AdminLanguagePick = {
10 '4994a8ffeba4ac3140beb89e8d41f174' :"Language",
11 'ea4788705e6873b424c65e91c2846b19' :"Cancel",
12 '052ca52fc8eb1bdff3e34de3fa735e35' :"Select a Language",
13 'e0aa021e21dddbd6d8cecec71e9cf564' :"OK"
16 'language_name_fieldLabel' : '4994a8ffeba4ac3140beb89e8d41f174' /* Language */
22 show : function(data, cb)
30 this.dialog.show(this.data._el);
33 this.form.setValues(data);
34 this.form.fireEvent('actioncomplete', this.form, { type: 'setdata', data: data });
42 this.dialog = Roo.factory({
43 xtype : 'LayoutDialog',
49 title : _this._strings['052ca52fc8eb1bdff3e34de3fa735e35'] /* Select a Language */,
54 xtype : 'LayoutRegion',
61 text : _this._strings['ea4788705e6873b424c65e91c2846b19'] /* Cancel */,
63 click : function (_self, e)
73 text : _this._strings['e0aa021e21dddbd6d8cecec71e9cf564'] /* OK */,
75 click : function (_self, e)
79 var data = _this.form.getValues();
81 if (!data.lang.length) {
83 Roo.MessageBox.alert("Error", "Select language");
89 var callbackData = data.lang;
90 // Roo.log(_this.data);
91 if(_this.data._with_name == true){
92 callbackData = {'lang' : data.lang , 'lang_name' : _this.form.findField('lang').lastSelectionText};
95 _this.callback(callbackData);
106 xtype : 'ContentPanel',
114 style : 'margin:10px;',
115 url : baseURL + '/Roo/INGORE.php',
117 actioncomplete : function(_self,action)
119 if (action.type == 'setdata') {
120 //_this.dialog.el.mask("Loading");
121 //this.load({ method: 'GET', params: { '_id' : _this.data.id }});
124 if (action.type == 'load') {
125 _this.dialog.el.unmask();
128 if (action.type =='submit') {
130 _this.dialog.el.unmask();
133 if (_this.callback) {
134 _this.callback.call(_this, _this.form.getValues());
140 rendered : function (form)
152 displayField : 'title',
154 fieldLabel : _this._strings['4994a8ffeba4ac3140beb89e8d41f174'] /* Language */,
157 name : 'language_name',
158 triggerAction : 'all',
166 beforeload : function (_self, o)
168 // o.params['!code'] = 'en'; // exclude english from the list (it's the default?)
176 url : baseURL + '/Core/I18n/Lang',
181 xtype : 'JsonReader',
194 totalProperty : 'total',