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.CmsLanguagePick = {
10 '4994a8ffeba4ac3140beb89e8d41f174' :"Language",
11 'ea4788705e6873b424c65e91c2846b19' :"Cancel",
12 '052ca52fc8eb1bdff3e34de3fa735e35' :"Select a Language",
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({
40 xtype : 'LayoutDialog',
46 title : _this._strings['052ca52fc8eb1bdff3e34de3fa735e35'] /* Select a Language */,
51 xtype : 'LayoutRegion',
58 text : _this._strings['ea4788705e6873b424c65e91c2846b19'] /* Cancel */,
60 click : function (_self, e)
70 text : _this._strings['e0aa021e21dddbd6d8cecec71e9cf564'] /* OK */,
72 click : function (_self, e)
76 var data = _this.form.getValues();
78 if (!data.lang.length) {
80 Roo.MessageBox.alert("Error", "Select language");
86 var callbackData = data.lang;
87 // Roo.log(_this.data);
88 if(_this.data._with_name == true){
89 callbackData = {'lang' : data.lang , 'lang_name' : _this.form.findField('lang').lastSelectionText};
92 _this.callback(callbackData);
103 xtype : 'ContentPanel',
111 style : 'margin:10px;',
112 url : baseURL + '/Roo/INGORE.php',
114 actioncomplete : function(_self,action)
116 if (action.type == 'setdata') {
117 //_this.dialog.el.mask("Loading");
118 //this.load({ method: 'GET', params: { '_id' : _this.data.id }});
121 if (action.type == 'load') {
122 _this.dialog.el.unmask();
125 if (action.type =='submit') {
127 _this.dialog.el.unmask();
130 if (_this.callback) {
131 _this.callback.call(_this, _this.form.getValues());
137 rendered : function (form)
149 displayField : 'title',
151 fieldLabel : _this._strings['4994a8ffeba4ac3140beb89e8d41f174'] /* Language */,
154 name : 'language_name',
155 triggerAction : 'all',
163 beforeload : function (_self, o)
165 o.params['!code'] = 'en'; // exclude english from the list (it's the default?)
173 url : baseURL + '/Core/I18n/Lang',
178 xtype : 'JsonReader',
191 totalProperty : 'total',