summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-10-23 19:07:59 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-10-23 19:07:59 +0000
commit152a5da64df7c1de74ff7f6a4fda25121100de00 (patch)
tree8f46d3b7476344582230bea2600144f61c48fd86
parent295e8c86ab8c7ad19dff2038dc7cda106551e143 (diff)
downloadredmine-152a5da64df7c1de74ff7f6a4fda25121100de00.tar.gz
redmine-152a5da64df7c1de74ff7f6a4fda25121100de00.zip
SCM browser:
* 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
-rw-r--r--public/images/folder.pngbin506 -> 1026 bytes
-rw-r--r--public/images/folder_open.pngbin488 -> 1031 bytes
-rw-r--r--public/javascripts/application.js4
3 files changed, 3 insertions, 1 deletions
diff --git a/public/images/folder.png b/public/images/folder.png
index 03e56110c..d2ab69ad5 100644
--- a/public/images/folder.png
+++ b/public/images/folder.png
Binary files differ
diff --git a/public/images/folder_open.png b/public/images/folder_open.png
index 2b49d314a..e8e8c412e 100644
--- a/public/images/folder_open.png
+++ b/public/images/folder_open.png
Binary files differ
diff --git a/public/javascripts/application.js b/public/javascripts/application.js
index 8432685dd..075bb7a90 100644
--- a/public/javascripts/application.js
+++ b/public/javascripts/application.js
@@ -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');