qBittorrent/src/webui/www/private/transferlist.html

94 lines
2.7 KiB
HTML
Raw Normal View History

<div id="torrentsTableFixedHeaderDiv" class="dynamicTableFixedHeaderDiv">
<table class="dynamicTable unselectable" style="position:relative;">
<thead>
<tr class="dynamicTableHeader"></tr>
</thead>
</table>
</div>
<div id="torrentsTableDiv" class="dynamicTableDiv">
<table class="dynamicTable unselectable">
<thead>
<tr class="dynamicTableHeader"></tr>
</thead>
<tbody></tbody>
</table>
</div>
<script>
//create a context menu
2016-01-20 16:13:54 +03:00
var torrentsTableContextMenu = new TorrentsTableContextMenu({
2018-04-05 06:59:31 +03:00
targets: '.torrentsTableContextMenuTarget',
menu: 'torrentsTableMenu',
actions: {
Start: function(element, ref) {
startFN();
},
2018-04-05 06:59:31 +03:00
Pause: function(element, ref) {
pauseFN();
},
2018-04-05 06:59:31 +03:00
ForceStart: function(element, ref) {
setForceStartFN();
},
2018-04-05 06:59:31 +03:00
Delete: function(element, ref) {
deleteFN();
},
2018-04-05 06:59:31 +03:00
SetLocation: function(element, ref) {
setLocationFN();
},
2018-04-05 06:59:31 +03:00
Rename: function(element, ref) {
renameFN();
},
2018-04-05 06:59:31 +03:00
prioTop: function(element, ref) {
setPriorityFN('top_prio');
},
2018-04-05 06:59:31 +03:00
prioUp: function(element, ref) {
setPriorityFN('increase_prio');
},
2018-04-05 06:59:31 +03:00
prioDown: function(element, ref) {
setPriorityFN('decrease_prio');
},
2018-04-05 06:59:31 +03:00
prioBottom: function(element, ref) {
setPriorityFN('bottom_prio');
},
2018-04-05 06:59:31 +03:00
DownloadLimit: function(element, ref) {
downloadLimitFN();
},
2018-04-05 06:59:31 +03:00
UploadLimit: function(element, ref) {
uploadLimitFN();
},
ShareRatio : function (element, ref) {
shareRatioFN();
},
2018-04-05 06:59:31 +03:00
SequentialDownload: function(element, ref) {
2014-12-09 19:54:35 +03:00
toggleSequentialDownloadFN();
},
2018-04-05 06:59:31 +03:00
FirstLastPiecePrio: function(element, ref) {
2014-12-09 19:54:35 +03:00
toggleFirstLastPiecePrioFN();
},
2018-04-05 06:59:31 +03:00
AutoTorrentManagement: function(element, ref) {
autoTorrentManagementFN();
},
2018-04-05 06:59:31 +03:00
ForceRecheck: function(element, ref) {
recheckFN();
},
2018-04-05 06:59:31 +03:00
SuperSeeding: function(element, ref) {
setSuperSeedingFN(!ref.getItemChecked('SuperSeeding'));
}
},
2018-04-05 06:59:31 +03:00
offsets: {
x: -15,
y: 2
}
});
torrentsTable.setup('torrentsTableDiv', 'torrentsTableFixedHeaderDiv', torrentsTableContextMenu);
</script>