select-all button

This commit is contained in:
Martijn Voncken 2008-08-05 21:17:53 +00:00
parent e1a7adeae5
commit c902bca4cd
3 changed files with 15 additions and 0 deletions

View File

@ -97,6 +97,14 @@ function deselect_all_rows(){
}
}
function select_all_rows(){
torrents = torrent_table.torrents
for (i in torrents){
select_row(torrents[i]);
}
}
function reselect_rows(){
var selected = false;
var selected_rows = getCookie('selected_rows').split(',');

Binary file not shown.

After

Width:  |  Height:  |  Size: 538 B

View File

@ -4,3 +4,10 @@ $for id, title, image, flag, method, url, important in toolbar_items:
onclick='toolbar_$(method.lower()) ("$base$url",$flag)'
title='$title'><img class='toolbar_btn'
src='$base/static/images/tango/$image'></a>
<a class='toolbar_btn' href="#"
onclick='select_all_rows()'
title='$_("Select All")'><img class='toolbar_btn'
src='$base/static/images/tango/select-all.png'></a>