1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-16 09:40:13 +00:00
qBittorrent/src/webui/www/private/transferlist.html

99 lines
2.8 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>
2018-11-30 18:30:26 +08:00
'use strict';
//create a context menu
2016-01-20 16:13:54 +03:00
var torrentsTableContextMenu = new TorrentsTableContextMenu({
2018-04-05 11:59:31 +08:00
targets: '.torrentsTableContextMenuTarget',
menu: 'torrentsTableMenu',
actions: {
2018-12-28 19:51:17 +02:00
start: function(element, ref) {
startFN();
},
2018-12-28 19:51:17 +02:00
pause: function(element, ref) {
pauseFN();
},
2018-12-28 19:51:17 +02:00
forceStart: function(element, ref) {
setForceStartFN();
},
2018-12-28 19:51:17 +02:00
delete: function(element, ref) {
deleteFN();
},
2018-12-28 19:51:17 +02:00
setLocation: function(element, ref) {
setLocationFN();
},
2018-12-28 19:51:17 +02:00
rename: function(element, ref) {
renameFN();
},
2018-12-28 19:51:17 +02:00
queueTop: function(element, ref) {
setQueuePositionFN('topPrio');
},
2018-12-28 19:51:17 +02:00
queueUp: function(element, ref) {
setQueuePositionFN('increasePrio');
},
2018-12-28 19:51:17 +02:00
queueDown: function(element, ref) {
setQueuePositionFN('decreasePrio');
},
2018-12-28 19:51:17 +02:00
queueBottom: function(element, ref) {
setQueuePositionFN('bottomPrio');
},
2018-12-28 19:51:17 +02:00
downloadLimit: function(element, ref) {
downloadLimitFN();
},
2018-12-28 19:51:17 +02:00
uploadLimit: function(element, ref) {
uploadLimitFN();
},
2018-12-28 19:51:17 +02:00
shareRatio: function(element, ref) {
shareRatioFN();
},
2018-12-28 19:51:17 +02:00
sequentialDownload: function(element, ref) {
2014-12-09 19:54:35 +03:00
toggleSequentialDownloadFN();
},
2018-12-28 19:51:17 +02:00
firstLastPiecePrio: function(element, ref) {
2014-12-09 19:54:35 +03:00
toggleFirstLastPiecePrioFN();
},
2018-12-28 19:51:17 +02:00
autoTorrentManagement: function(element, ref) {
autoTorrentManagementFN();
},
2018-12-28 19:51:17 +02:00
forceRecheck: function(element, ref) {
recheckFN();
},
2018-12-28 19:51:17 +02:00
forceReannounce: function(element, ref) {
2018-07-22 20:33:17 -04:00
reannounceFN();
},
2018-12-28 19:51:17 +02:00
superSeeding: function(element, ref) {
setSuperSeedingFN(!ref.getItemChecked('superSeeding'));
}
},
2018-04-05 11:59:31 +08:00
offsets: {
x: -15,
y: 2
}
});
torrentsTable.setup('torrentsTableDiv', 'torrentsTableFixedHeaderDiv', torrentsTableContextMenu);
</script>