svn: /web/doc-editor/trunk/js/ui/component/ LocalMailGrid.js

[email protected] (Yannick Torres)
Newsgroups php.doc.web
Message-ID <[email protected]>
yannick                                  Thu, 03 Dec 2009 16:54:39 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=291664

Log:
Don't load this store in EN lang (as it is already loaded). Just need to load it in LANG

Changed paths:
    U   web/doc-editor/trunk/js/ui/component/LocalMailGrid.js

Modified: web/doc-editor/trunk/js/ui/component/LocalMailGrid.js
===================================================================
--- web/doc-editor/trunk/js/ui/component/LocalMailGrid.js	2009-12-03 16:40:11 UTC (rev 291663)
+++ web/doc-editor/trunk/js/ui/component/LocalMailGrid.js	2009-12-03 16:54:39 UTC (rev 291664)
@@ -73,6 +73,9 @@
     sm               : new Ext.grid.RowSelectionModel({ singleSelect: true }),

     listeners : {
+        render: function(grid) {
+            if( phpDoc.userLang !== 'en' ) { grid.store.load.defer(20, grid.store); }
+        },
         rowcontextmenu : function(grid, rowIndex, e)
         {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.