Pman.Tab.AdminTranslations.js
authorAlan Knowles <alan@akbkhome.com>
Thu, 15 Sep 2011 03:00:47 +0000 (11:00 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 15 Sep 2011 03:00:47 +0000 (11:00 +0800)
Pman.Tab.AdminTranslations.js

index 6438ffc..c68cfc4 100644 (file)
@@ -385,6 +385,42 @@ Pman.Tab.AdminTranslations = new Roo.util.Observable({
                                 xtype: 'Toolbar',
                                 xns: Roo,
                                 items : [
+                                    {
+                                        xtype: 'ComboBox',
+                                        xns: Roo.form,
+                                        listeners : {
+                                            render : function (_self)
+                                            {
+                                              _this.modCombo = _self;
+                                            },
+                                            select : function (combo, record, index)
+                                            {
+                                              _this.grid.getDataSource().reload(); 
+                                            }
+                                        },
+                                        valueField : 'module',
+                                        displayField : 'module',
+                                        width : 200,
+                                        typeAhead : false,
+                                        editable : false,
+                                        mode : 'local',
+                                        triggerAction : 'all',
+                                        emptyText : "Select Module",
+                                        selectOnFocus : true,
+                                        store : {
+                                            xtype: 'SimpleStore',
+                                            xns: Roo.data,
+                                            data : (function() {             
+                                                    var modlist = [];             
+                                                    AppModules = typeof(AppModules) == 'undefined' ? '' : AppModules;
+                                                    Roo.each( AppModules.split(','), function(mod) {            
+                                                             modlist.push( [ mod ] );            
+                                                  });             
+                                                  return modlist;
+                                               })(),
+                                            fields : ['module']
+                                        }
+                                    },
                                     {
                                         xtype: 'ComboBox',
                                         xns: Roo.form,