diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-08-26 16:05:02 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-08-26 16:05:02 +0000 |
commit | 6ad989f82887dcd88cf3cf70b658b4ccf82cf770 (patch) | |
tree | cc79f7f4d7dfe13f1c94258190e809587e030710 /public/javascripts | |
parent | 5c6bee7f85bfba6bd82f48db6d591bf94c386d09 (diff) | |
download | redmine-6ad989f82887dcd88cf3cf70b658b4ccf82cf770.tar.gz redmine-6ad989f82887dcd88cf3cf70b658b4ccf82cf770.zip |
Adds checkboxes toggle links on permissions report.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1770 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'public/javascripts')
-rw-r--r-- | public/javascripts/application.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/public/javascripts/application.js b/public/javascripts/application.js index 1674044f8..3becbeb21 100644 --- a/public/javascripts/application.js +++ b/public/javascripts/application.js @@ -10,6 +10,13 @@ function checkAll (id, checked) { } } +function toggleCheckboxesBySelector(selector) { + boxes = $$(selector); + var all_checked = true; + for (i = 0; i < boxes.length; i++) { if (boxes[i].checked == false) { all_checked = false; } } + for (i = 0; i < boxes.length; i++) { boxes[i].checked = !all_checked; } +} + function showAndScrollTo(id, focus) { Element.show(id); if (focus!=null) { Form.Element.focus(focus); } |