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

[email protected] (Yannick Torres)
Newsgroups php.doc.web
Message-ID <[email protected]>
yannick                                  Fri, 11 Dec 2009 06:53:31 +0000

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

Log:
Fix bug when we use the openFile method

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

Modified: web/doc-editor/trunk/js/ui/component/RepositoryTree.js
===================================================================
--- web/doc-editor/trunk/js/ui/component/RepositoryTree.js	2009-12-11 06:37:42 UTC (rev 291968)
+++ web/doc-editor/trunk/js/ui/component/RepositoryTree.js	2009-12-11 06:53:31 UTC (rev 291969)
@@ -65,12 +65,12 @@
             FileLang, FilePath;

             t.shift();
+            FileLang = t[0];
             t.shift();
             t.pop();

-            FileLang = t.shift();
             FilePath = t.join('/') + '/';
-
+
         Ext.apply(this,
         {
             items : [{
@@ -332,6 +332,7 @@

         var t = fpath.split('/'), cb = function(node)
         {
+
             node.ensureVisible();
             if (t[0] && t[0] !== '') {
                 // walk into childs
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.