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
This commit is contained in:
parent
295e8c86ab
commit
152a5da64d
Binary file not shown.
Before Width: | Height: | Size: 506 B After Width: | Height: | Size: 1.0 KiB |
Binary file not shown.
Before Width: | Height: | Size: 488 B After Width: | Height: | Size: 1.0 KiB |
|
@ -62,7 +62,9 @@ function checkBulkEdit(form) {
|
||||||
function collapseScmEntry(id) {
|
function collapseScmEntry(id) {
|
||||||
var els = document.getElementsByClassName(id, 'browser');
|
var els = document.getElementsByClassName(id, 'browser');
|
||||||
for (var i = 0; i < els.length; i++) {
|
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]);
|
Element.hide(els[i]);
|
||||||
}
|
}
|
||||||
$(id).removeClassName('open');
|
$(id).removeClassName('open');
|
||||||
|
|
Loading…
Reference in New Issue