summaryrefslogtreecommitdiffstats
path: root/public/javascripts/application.js
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2009-05-04 18:04:09 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2009-05-04 18:04:09 +0000
commit1930cf3d4603f996e1639ca535b3b6a5b2604d44 (patch)
treeb3f71d8a3e82c6908fa2ed2d0b787e42ccd38901 /public/javascripts/application.js
parent19f44cd1cba9b798a083a0d40caf5e93f2dcfb7f (diff)
downloadredmine-1930cf3d4603f996e1639ca535b3b6a5b2604d44.tar.gz
redmine-1930cf3d4603f996e1639ca535b3b6a5b2604d44.zip
Adds group folding on issue list (#2679).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2711 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'public/javascripts/application.js')
-rw-r--r--public/javascripts/application.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/public/javascripts/application.js b/public/javascripts/application.js
index 3becbeb21..93d4a8bda 100644
--- a/public/javascripts/application.js
+++ b/public/javascripts/application.js
@@ -23,6 +23,16 @@ function showAndScrollTo(id, focus) {
Element.scrollTo(id);
}
+function toggleRowGroup(el) {
+ var tr = Element.up(el, 'tr');
+ var n = Element.next(tr);
+ tr.toggleClassName('open');
+ while (n != undefined && !n.hasClassName('group')) {
+ Element.toggle(n);
+ n = Element.next(n);
+ }
+}
+
var fileFieldCount = 1;
function addFileField() {