svn: /web/doc-editor/trunk/js/ login-all-debug.js

[email protected] (Yago Ferrer)
Newsgroups php.doc.web
Message-ID <[email protected]>
yago                                     Sun, 12 Dec 2010 21:30:29 +0000

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

Log:
Reading cookie value to set lastest language used as default value.

Changed paths:
    U   web/doc-editor/trunk/js/login-all-debug.js

Modified: web/doc-editor/trunk/js/login-all-debug.js
===================================================================
--- web/doc-editor/trunk/js/login-all-debug.js	2010-12-12 21:29:26 UTC (rev 306294)
+++ web/doc-editor/trunk/js/login-all-debug.js	2010-12-12 21:30:29 UTC (rev 306295)
@@ -675,7 +675,7 @@
                             iconClsField    : 'iconCls',
                             iconClsBase     : 'flags',
                             mode            : 'local',
-                            value           : 'en',
+                            value           : ( Ext.util.Cookies.get("lang") ) ? Ext.util.Cookies.get("lang") : 'en',
                             listWidth       : 235,
                             maxHeight       : 150,
                             editable        : true,
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.