summaryrefslogtreecommitdiffstats
path: root/public/javascripts/application.js
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-10-09 19:07:19 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-10-09 19:07:19 +0000
commit2c4647f8c6d23c999ae959a047104eef49d00993 (patch)
treefa1241406a68d951ded62d04269d85dfb6883a2c /public/javascripts/application.js
parentdf631e8c06d755fd673e4bbf072a7e15766d1e0c (diff)
downloadredmine-2c4647f8c6d23c999ae959a047104eef49d00993.tar.gz
redmine-2c4647f8c6d23c999ae959a047104eef49d00993.zip
Added 'Bulk edit' functionality.
This can be done by clicking on the edit link (little pen icon) at the upper-left corner of the issue list. Most properties can be set (priority, assignee, category, fixed version, start and due dates, done ratio) and a note can be entered. Only issues of the current project can be selected for bulk edit (subproject issues can't). git-svn-id: http://redmine.rubyforge.org/svn/trunk@817 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 6a30e42e7..bf86f398a 100644
--- a/public/javascripts/application.js
+++ b/public/javascripts/application.js
@@ -49,6 +49,16 @@ function promptToRemote(text, param, url) {
}
}
+/* checks that at least one checkbox is checked (used when submitting bulk edit form) */
+function checkBulkEdit(form) {
+ for (var i = 0; i < form.elements.length; i++) {
+ if (form.elements[i].checked) {
+ return true;
+ }
+ }
+ return false;
+}
+
/* shows and hides ajax indicator */
Ajax.Responders.register({
onCreate: function(){