svn: /web/doc-editor/trunk/js/ui/task/ ClearLocalChangeTask.js

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

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

Log:
check errors file to remove red mark

Changed paths:
    U   web/doc-editor/trunk/js/ui/task/ClearLocalChangeTask.js

Modified: web/doc-editor/trunk/js/ui/task/ClearLocalChangeTask.js
===================================================================
--- web/doc-editor/trunk/js/ui/task/ClearLocalChangeTask.js	2010-03-22 21:46:33 UTC (rev 296646)
+++ web/doc-editor/trunk/js/ui/task/ClearLocalChangeTask.js	2010-03-22 21:47:28 UTC (rev 296647)
@@ -67,6 +67,15 @@
                                     }
                                 }, this);

+                            // Browse FileError
+                            ui.component.ErrorFileGrid.getInstance().store.each(
+                                function(record)
+                                {
+                                    if ((PhDOE.userLang+record.data.path) === this.fpath && record.data.name === this.fname ) {
+                                        record.set('needcommit', false);
+                                    }
+                                }, this);
+
                             // find open node in All Files modules
                             node = false;
                             node = ui.component.RepositoryTree.getInstance().getNodeById('/'+this.fpath+this.fname);
@@ -103,15 +112,6 @@
                                 }
                             }, this);

-                        // Browse FileError
-                        ui.component.ErrorFileGrid.getInstance().store.each(
-                            function(record)
-                            {
-                                if ((PhDOE.userLang+record.data.path) === this.fpath && record.data.name === this.fname ) {
-                                    record.set('needcommit', false);
-                                }
-                            }, this);
-
                         // Browse storeFilesNeedReviewed
                         ui.component.PendingReviewGrid.getInstance().store.each(
                             function(record)
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.