mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-26 19:32:21 +00:00
select-all button
This commit is contained in:
parent
e1a7adeae5
commit
c902bca4cd
@ -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…
x
Reference in New Issue
Block a user