[freeside-commits] freeside/httemplate/search queue.html,1.3,1.4
Ivan,,,
ivan at wavetail.420.am
Wed Jan 10 15:21:16 PST 2007
Update of /home/cvs/cvsroot/freeside/httemplate/search
In directory wavetail:/tmp/cvs-serv18335
Modified Files:
queue.html
Log Message:
add "select all" and "unselect" all buttons to bulk queue operations
Index: queue.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/queue.html,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- queue.html 22 Dec 2006 06:18:21 -0000 1.3
+++ queue.html 10 Jan 2007 23:21:14 -0000 1.4
@@ -16,7 +16,7 @@
'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',
@@ -115,8 +115,18 @@
# ],
'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">'.
- '<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 {
'';
}
More information about the freeside-commits
mailing list