projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
26db267
)
add "select all" and "unselect" all buttons to bulk queue operations
author
ivan
<ivan>
Wed, 10 Jan 2007 23:21:14 +0000
(23:21 +0000)
committer
ivan
<ivan>
Wed, 10 Jan 2007 23:21:14 +0000
(23:21 +0000)
httemplate/search/queue.html
patch
|
blob
|
history
diff --git
a/httemplate/search/queue.html
b/httemplate/search/queue.html
index
63a5d6c
..
675fccd
100644
(file)
--- a/
httemplate/search/queue.html
+++ b/
httemplate/search/queue.html
@@
-16,7
+16,7
@@
'title' => 'Job Queue',
'menubar' => [ 'Main menu' => $p, ],
'name' => 'jobs',
'title' => 'Job Queue',
'menubar' => [ 'Main menu' => $p, ],
'name' => 'jobs',
- 'html_form' => qq!<FORM ACTION="$p/misc/queue.cgi" METHOD="POST">!,
+ 'html_form' => qq!<FORM
NAME="jobForm"
ACTION="$p/misc/queue.cgi" METHOD="POST">!,
'query' => { 'table' => 'queue',
'hashref' => $hashref,
'extra_sql' => 'ORDER BY jobnum',
'query' => { 'table' => 'queue',
'hashref' => $hashref,
'extra_sql' => 'ORDER BY jobnum',
@@
-115,8
+115,18
@@
# ],
'html_foot' => sub {
if ( $areboxes ) {
# ],
'html_foot' => sub {
if ( $areboxes ) {
+ '<BR><INPUT TYPE="button" VALUE="select all" onClick="setAll(true)">'.
+ '<INPUT TYPE="button" VALUE="unselect all" onClick="setAll(false)">'.
'<BR><INPUT TYPE="submit" NAME="action" VALUE="retry selected">'.
'<BR><INPUT TYPE="submit" NAME="action" VALUE="retry selected">'.
- '<INPUT TYPE="submit" NAME="action" VALUE="remove selected"><BR>';
+ '<INPUT TYPE="submit" NAME="action" VALUE="remove selected"><BR>'.
+ '<SCRIPT TYPE="text/javascript">'.
+ ' function setAll(setTo) { '.
+ ' theForm = document.jobForm;'.
+ ' for (i=0,n=theForm.elements.length;i<n;i++)'.
+ ' if (theForm.elements[i].name.indexOf("jobnum") != -1)'.
+ ' theForm.elements[i].checked = setTo;'.
+ ' }'.
+ '</SCRIPT>';
} else {
'';
}
} else {
'';
}