svn: /web/doc-editor/trunk/js/ main.js

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

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

Log:
Activate errors panel for EN user

Changed paths:
    U   web/doc-editor/trunk/js/main.js

Modified: web/doc-editor/trunk/js/main.js
===================================================================
--- web/doc-editor/trunk/js/main.js	2010-03-22 21:37:40 UTC (rev 296636)
+++ web/doc-editor/trunk/js/main.js	2010-03-22 21:38:28 UTC (rev 296637)
@@ -182,23 +182,28 @@
             } else {
                 // Store to load only for EN project
                 document.getElementById("loading-msg").innerHTML = "Loading data...";
-                progressBar.updateProgress(1/4, '1 of 4...');
+                progressBar.updateProgress(1/4, '1 of 5...');
                 ui.component._MainMenu.store.load({
                     callback: function() {
-                        progressBar.updateProgress(2/4, '2 of 4...');
+                        progressBar.updateProgress(2/4, '2 of 5...');
                         ui.component.PendingPatchGrid.getInstance().store.load({
                             callback: function() {
-                                progressBar.updateProgress(3/4, '3 of 4...');
+                                progressBar.updateProgress(3/4, '3 of 5...');
                                 ui.component.PortletTranslationsGraph.getInstance().store.load({
                                     callback: function() {
-                                        progressBar.updateProgress(4/4, '4 of 4...');
+                                        progressBar.updateProgress(4/4, '4 of 5...');
                                         ui.component.PendingCommitGrid.getInstance().store.load({
                                             callback: function() {
-                                                // Now, we can to remove the global mask
-                                                Ext.get('loading').remove();
-                                                Ext.fly('loading-mask').fadeOut({ remove : true });
-                                                progressBar.destroy();
-                                                PhDOE.afterLoadAllStore();
+                                                progressBar.updateProgress(4/4, '5 of 5...');
+                                                ui.component.ErrorFileGrid.getInstance().store.load({
+                                                    callback: function() {
+                                                        // Now, we can to remove the global mask
+                                                        Ext.get('loading').remove();
+                                                        Ext.fly('loading-mask').fadeOut({ remove : true });
+                                                        progressBar.destroy();
+                                                        PhDOE.afterLoadAllStore();
+                                                    }
+                                                });
                                             }
                                         });
                                     }
@@ -353,7 +358,6 @@
                         layout    : 'fit',
                         border    : false,
                         iconCls   : 'iconFilesError',
-                        hidden    : (this.userLang === 'en'),
                         items     : [ ui.component.ErrorFileGrid.getInstance() ],
                         collapsed : 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.