2016-07-16 22:21:14 +03:00
|
|
|
<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>
|
2009-11-24 22:41:31 +03:00
|
|
|
|
2018-03-21 09:34:37 +03:00
|
|
|
<script>
|
2014-11-22 14:51:14 +03:00
|
|
|
//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) {
|
2014-11-22 14:51:14 +03:00
|
|
|
startFN();
|
|
|
|
},
|
2018-04-05 06:59:31 +03:00
|
|
|
Pause: function(element, ref) {
|
2014-11-22 14:51:14 +03:00
|
|
|
pauseFN();
|
|
|
|
},
|
2018-04-05 06:59:31 +03:00
|
|
|
ForceStart: function(element, ref) {
|
2015-07-14 04:06:34 +03:00
|
|
|
setForceStartFN();
|
|
|
|
},
|
2017-08-06 12:04:39 +03:00
|
|
|
|
2018-04-05 06:59:31 +03:00
|
|
|
Delete: function(element, ref) {
|
2017-08-06 12:04:39 +03:00
|
|
|
deleteFN();
|
|
|
|
},
|
|
|
|
|
2018-04-05 06:59:31 +03:00
|
|
|
SetLocation: function(element, ref) {
|
2017-08-06 12:04:39 +03:00
|
|
|
setLocationFN();
|
|
|
|
},
|
|
|
|
|
2018-04-05 06:59:31 +03:00
|
|
|
Rename: function(element, ref) {
|
2017-07-04 12:54:43 +03:00
|
|
|
renameFN();
|
|
|
|
},
|
2018-04-05 06:59:31 +03:00
|
|
|
prioTop: function(element, ref) {
|
2017-10-14 16:27:21 +03:00
|
|
|
setPriorityFN('top_prio');
|
2014-11-22 14:51:14 +03:00
|
|
|
},
|
2018-04-05 06:59:31 +03:00
|
|
|
prioUp: function(element, ref) {
|
2017-10-14 16:27:21 +03:00
|
|
|
setPriorityFN('increase_prio');
|
2014-11-22 14:51:14 +03:00
|
|
|
},
|
2018-04-05 06:59:31 +03:00
|
|
|
prioDown: function(element, ref) {
|
2017-10-14 16:27:21 +03:00
|
|
|
setPriorityFN('decrease_prio');
|
2014-11-22 14:51:14 +03:00
|
|
|
},
|
2018-04-05 06:59:31 +03:00
|
|
|
prioBottom: function(element, ref) {
|
2017-10-14 16:27:21 +03:00
|
|
|
setPriorityFN('bottom_prio');
|
2014-11-22 14:51:14 +03:00
|
|
|
},
|
2017-08-06 12:04:39 +03:00
|
|
|
|
2018-04-05 06:59:31 +03:00
|
|
|
DownloadLimit: function(element, ref) {
|
2017-08-06 12:04:39 +03:00
|
|
|
downloadLimitFN();
|
2014-11-22 14:51:14 +03:00
|
|
|
},
|
2018-04-05 06:59:31 +03:00
|
|
|
UploadLimit: function(element, ref) {
|
2014-11-22 14:51:14 +03:00
|
|
|
uploadLimitFN();
|
|
|
|
},
|
2017-08-06 12:04:39 +03:00
|
|
|
|
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();
|
2015-01-30 23:58:27 +03:00
|
|
|
},
|
2017-08-06 12:04:39 +03:00
|
|
|
|
2018-04-05 06:59:31 +03:00
|
|
|
AutoTorrentManagement: function(element, ref) {
|
2017-07-05 08:47:23 +03:00
|
|
|
autoTorrentManagementFN();
|
|
|
|
},
|
2018-04-05 06:59:31 +03:00
|
|
|
ForceRecheck: function(element, ref) {
|
2017-08-06 12:04:39 +03:00
|
|
|
recheckFN();
|
|
|
|
},
|
|
|
|
|
2018-04-05 06:59:31 +03:00
|
|
|
SuperSeeding: function(element, ref) {
|
2015-01-30 23:58:27 +03:00
|
|
|
setSuperSeedingFN(!ref.getItemChecked('SuperSeeding'));
|
2014-11-22 14:51:14 +03:00
|
|
|
}
|
|
|
|
},
|
2018-04-05 06:59:31 +03:00
|
|
|
offsets: {
|
|
|
|
x: -15,
|
|
|
|
y: 2
|
2014-11-22 14:51:14 +03:00
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2016-07-16 22:21:14 +03:00
|
|
|
torrentsTable.setup('torrentsTableDiv', 'torrentsTableFixedHeaderDiv', torrentsTableContextMenu);
|
2010-08-15 12:49:19 +04:00
|
|
|
</script>
|