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

[email protected] (Yannick Torres)
Newsgroups php.doc.web
Message-ID <[email protected]>
yannick                                  Mon, 22 Mar 2010 21:39:42 +0000

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

Log:
reorder the check ; Activate errors for EN files

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

Modified: web/doc-editor/trunk/js/ui/component/MainPanel.js
===================================================================
--- web/doc-editor/trunk/js/ui/component/MainPanel.js	2010-03-22 21:38:28 UTC (rev 296637)
+++ web/doc-editor/trunk/js/ui/component/MainPanel.js	2010-03-22 21:39:42 UTC (rev 296638)
@@ -174,24 +174,19 @@

             if (PanType[0] === 'FE') {
                 stateLang = Ext.getCmp('FE-LANG-FILE-' + PanType[1]).isModified;
+                stateEn   = ( PhDOE.userLang === 'en' ) ? false : Ext.getCmp('FE-EN-FILE-' + PanType[1]).isModified;
             }
+
             if (PanType[0] === 'FNU') {
                 stateLang = Ext.getCmp('FNU-LANG-FILE-' + PanType[1]).isModified;
+                stateEn   = Ext.getCmp('FNU-EN-FILE-' + PanType[1]).isModified;
             }
+
             if (PanType[0] === 'FNR') {
                 stateLang = Ext.getCmp('FNR-LANG-FILE-' + PanType[1]).isModified;
+                stateEn   = Ext.getCmp('FNR-EN-FILE-' + PanType[1]).isModified;
             }

-            if (PanType[0] === 'FE') {
-                stateEn = Ext.getCmp('FE-EN-FILE-' + PanType[1]).isModified;
-            }
-            if (PanType[0] === 'FNU') {
-                stateEn = Ext.getCmp('FNU-EN-FILE-' + PanType[1]).isModified;
-            }
-            if (PanType[0] === 'FNR') {
-                stateEn = Ext.getCmp('FNR-EN-FILE-' + PanType[1]).isModified;
-            }
-
             if (PanType[0] === 'PP') {
                 state = Ext.getCmp('PP-PATCH-FILE-' + PanType[1]).isModified;
             }
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.