From: Alan Knowles Date: Thu, 15 Sep 2011 03:00:46 +0000 (+0800) Subject: Pman.Tab.AdminTranslations.bjs X-Git-Url: http://git.roojs.org/?p=Pman.Admin;a=commitdiff_plain;h=2bac2964fa16f6e56897dab2d46ad4955ab8e8c3 Pman.Tab.AdminTranslations.bjs --- diff --git a/Pman.Tab.AdminTranslations.bjs b/Pman.Tab.AdminTranslations.bjs index 887a675..0c12408 100644 --- a/Pman.Tab.AdminTranslations.bjs +++ b/Pman.Tab.AdminTranslations.bjs @@ -251,6 +251,32 @@ "xtype": "Toolbar", "|xns": "Roo", "items": [ + { + "xtype": "ComboBox", + "listeners": { + "|render": "function (_self)\n{\n _this.modCombo = _self;\n}", + "|select": "function (combo, record, index)\n{\n _this.grid.getDataSource().reload(); \n}" + }, + "valueField": "module", + "displayField": "module", + "width": 200, + "typeAhead": false, + "editable": false, + "mode": "local", + "triggerAction": "all", + "emptyText": "Select Module", + "selectOnFocus": true, + "|xns": "Roo.form", + "items": [ + { + "*prop": "store", + "xtype": "SimpleStore", + "|data": "(function() { \n var modlist = []; \n AppModules = typeof(AppModules) == 'undefined' ? '' : AppModules;\n Roo.each( AppModules.split(','), function(mod) { \n modlist.push( [ mod ] ); \n }); \n return modlist;\n })()", + "|fields": "['module']", + "|xns": "Roo.data" + } + ] + }, { "listeners": { "|select": "function (combo, record, index)\n{\n _this.langgrid.getDataSource().reload(); \n}",