"name" : "Pman.Dialog.CmsLanguagePick",
"parent" : "",
"title" : "",
- "path" : "/home/edward/gitlive/Pman.Cms/Pman.Dialog.CmsLanguagePick.bjs",
+ "path" : "/home/alan/gitlive/Pman.Cms/Pman.Dialog.CmsLanguagePick.bjs",
"permname" : "",
"modOrder" : "001",
"strings" : {
"|rendered" : "function (form)\n{\n _this.form= form;\n}\n"
},
"$ url" : "baseURL + '/Roo/INGORE.php'",
- "xtype" : "Form",
"method" : "GET",
+ "xtype" : "Form",
"style" : "margin:10px;",
"$ xns" : "Roo.form",
"items" : [
"name" : "language_name",
"items" : [
{
+ "listeners" : {
+ "beforeload" : "function (_self, o)\n{\n o.params['!code'] = 'en'; // exclude english from the list (it's the default?)\n}"
+ },
"xtype" : "Store",
"$ xns" : "Roo.data",
"* prop" : "store",
"items" : [
{
"$ url" : "baseURL + '/Core/I18n/Lang'",
- "xtype" : "HttpProxy",
"method" : "GET",
+ "xtype" : "HttpProxy",
"$ xns" : "Roo.data",
"* prop" : "proxy"
},
{
var _this = this;
this.dialog = Roo.factory({
+ xtype : 'LayoutDialog',
closable : false,
collapsible : false,
height : 120,
width : 400,
xns : Roo,
'|xns' : 'Roo',
- xtype : 'LayoutDialog',
center : {
+ xtype : 'LayoutRegion',
xns : Roo,
- '|xns' : 'Roo',
- xtype : 'LayoutRegion'
+ '|xns' : 'Roo'
},
buttons : [
{
- text : _this._strings['ea4788705e6873b424c65e91c2846b19'] /* Cancel */,
- xns : Roo,
- '|xns' : 'Roo',
xtype : 'Button',
+ text : _this._strings['ea4788705e6873b424c65e91c2846b19'] /* Cancel */,
listeners : {
click : function (_self, e)
{
_this.dialog.hide();
}
- }
+ },
+ xns : Roo,
+ '|xns' : 'Roo'
},
{
- text : _this._strings['e0aa021e21dddbd6d8cecec71e9cf564'] /* OK */,
- xns : Roo,
- '|xns' : 'Roo',
xtype : 'Button',
+ text : _this._strings['e0aa021e21dddbd6d8cecec71e9cf564'] /* OK */,
listeners : {
click : function (_self, e)
{
}
- }
+ },
+ xns : Roo,
+ '|xns' : 'Roo'
}
],
items : [
{
+ xtype : 'ContentPanel',
region : 'center',
xns : Roo,
'|xns' : 'Roo',
- xtype : 'ContentPanel',
items : [
{
+ xtype : 'Form',
method : 'GET',
style : 'margin:10px;',
url : baseURL + '/Roo/INGORE.php',
- xns : Roo.form,
- '|xns' : 'Roo.form',
- xtype : 'Form',
listeners : {
actioncomplete : function(_self,action)
{
_this.form= form;
}
},
+ xns : Roo.form,
+ '|xns' : 'Roo.form',
items : [
{
+ xtype : 'ComboBox',
allowBlank : false,
alwaysQuery : true,
displayField : 'title',
width : 200,
xns : Roo.form,
'|xns' : 'Roo.form',
- xtype : 'ComboBox',
store : {
+ xtype : 'Store',
+ listeners : {
+ beforeload : function (_self, o)
+ {
+ o.params['!code'] = 'en'; // exclude english from the list (it's the default?)
+ }
+ },
xns : Roo.data,
'|xns' : 'Roo.data',
- xtype : 'Store',
proxy : {
+ xtype : 'HttpProxy',
method : 'GET',
url : baseURL + '/Core/I18n/Lang',
xns : Roo.data,
- '|xns' : 'Roo.data',
- xtype : 'HttpProxy'
+ '|xns' : 'Roo.data'
},
reader : {
+ xtype : 'JsonReader',
fields : [
{
'name': 'code',
root : 'data',
totalProperty : 'total',
xns : Roo.data,
- '|xns' : 'Roo.data',
- xtype : 'JsonReader'
+ '|xns' : 'Roo.data'
}
}
}