Pman.Tab.AdminTranslations.js
authorAlan Knowles <alan@akbkhome.com>
Thu, 15 Sep 2011 02:59:50 +0000 (10:59 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 15 Sep 2011 02:59:50 +0000 (10:59 +0800)
Pman.Tab.AdminTranslations.js

index 0b6e5d4..1b4347d 100644 (file)
@@ -385,6 +385,35 @@ Pman.Tab.AdminTranslations = new Roo.util.Observable({
                                 xtype: 'Toolbar',
                                 xns: Roo,
                                 items : [
+                                    {
+                                        xtype: 'ComboBox',
+                                        xns: Roo.form,
+                                        listeners : {
+                                            select : function (combo, record, index)
+                                            {
+                                              _this.grid.getDataSource().reload(); 
+                                            },
+                                            render : function (_self)
+                                            {
+                                              _this.langCombo=_self;
+                                            }
+                                        },
+                                        valueField : 'lang',
+                                        displayField : 'ldisp',
+                                        width : 200,
+                                        typeAhead : false,
+                                        editable : false,
+                                        mode : 'local',
+                                        triggerAction : 'all',
+                                        emptyText : "Select Language",
+                                        selectOnFocus : true,
+                                        store : {
+                                            xtype: 'SimpleStore',
+                                            xns: Roo.data,
+                                            fields : ['lang', 'ldisp'],
+                                            data : [                                                [ 'zh_HK' , '\u7E41\u4E2D - Trad. Chin. (HK)' ],                         [ 'zh_CN', '\u7C21\u4E2D - Simp. Chin.' ]                     ]
+                                        }
+                                    },
                                     {
                                         xtype: 'Button',
                                         xns: Roo.Toolbar,