mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
select-all button
This commit is contained in:
parent
e1a7adeae5
commit
c902bca4cd
3 changed files with 15 additions and 0 deletions
|
@ -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(){
|
function reselect_rows(){
|
||||||
var selected = false;
|
var selected = false;
|
||||||
var selected_rows = getCookie('selected_rows').split(',');
|
var selected_rows = getCookie('selected_rows').split(',');
|
||||||
|
|
BIN
deluge/ui/webui/static/images/tango/select-all.png
Normal file
BIN
deluge/ui/webui/static/images/tango/select-all.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 538 B |
|
@ -4,3 +4,10 @@ $for id, title, image, flag, method, url, important in toolbar_items:
|
||||||
onclick='toolbar_$(method.lower()) ("$base$url",$flag)'
|
onclick='toolbar_$(method.lower()) ("$base$url",$flag)'
|
||||||
title='$title'><img class='toolbar_btn'
|
title='$title'><img class='toolbar_btn'
|
||||||
src='$base/static/images/tango/$image'></a>
|
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>
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue