]> source.dussan.org Git - redmine.git/commitdiff
SCM browser:
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 23 Oct 2007 19:07:59 +0000 (19:07 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 23 Oct 2007 19:07:59 +0000 (19:07 +0000)
* js code improvement (was very slow when collapsing a folder with a lot of entries)
* folder icons changed

git-svn-id: http://redmine.rubyforge.org/svn/trunk@867 e93f8b46-1217-0410-a6f0-8f06a7374b81

public/images/folder.png
public/images/folder_open.png
public/javascripts/application.js

index 03e56110ca3b08f40cb5c57306a0b48cd6c48b93..d2ab69ad5473f2135155de1d9891d554906e8783 100644 (file)
Binary files a/public/images/folder.png and b/public/images/folder.png differ
index 2b49d314a3b37efa8081c5dd04f4fd9acbad927a..e8e8c412e1298ce6708f62937f78cb284843f032 100644 (file)
Binary files a/public/images/folder_open.png and b/public/images/folder_open.png differ
index 8432685ddc9061aad8b43456c805737cf416e722..075bb7a906881193e0867a8f3d4af6f2ba685eeb 100644 (file)
@@ -62,7 +62,9 @@ function checkBulkEdit(form) {
 function collapseScmEntry(id) {
     var els = document.getElementsByClassName(id, 'browser');
        for (var i = 0; i < els.length; i++) {
-          collapseScmEntry(els[i].id);
+          if (els[i].hasClassName('open')) {
+              collapseScmEntry(els[i].id);
+          }
        Element.hide(els[i]);
     }
     $(id).removeClassName('open');