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
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
2014-11-22 14:51:14 +03:00
|
|
|
//create a context menu
|
2016-01-20 16:13:54 +03:00
|
|
|
var torrentsTableContextMenu = new TorrentsTableContextMenu({
|
|
|
|
targets : '.torrentsTableContextMenuTarget',
|
2016-01-20 22:57:42 +03:00
|
|
|
menu : 'torrentsTableMenu',
|
2014-11-22 14:51:14 +03:00
|
|
|
actions : {
|
|
|
|
Start : function (element, ref) {
|
|
|
|
startFN();
|
|
|
|
},
|
|
|
|
Pause : function (element, ref) {
|
|
|
|
pauseFN();
|
|
|
|
},
|
2015-07-14 04:06:34 +03:00
|
|
|
ForceStart : function (element, ref) {
|
|
|
|
setForceStartFN();
|
|
|
|
},
|
2017-08-06 12:04:39 +03:00
|
|
|
|
|
|
|
Delete : function (element, ref) {
|
|
|
|
deleteFN();
|
|
|
|
},
|
|
|
|
|
|
|
|
SetLocation : function (element, ref) {
|
|
|
|
setLocationFN();
|
|
|
|
},
|
|
|
|
|
2017-07-04 12:54:43 +03:00
|
|
|
Rename : function(element, ref) {
|
|
|
|
renameFN();
|
|
|
|
},
|
2014-11-22 14:51:14 +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
|
|
|
},
|
|
|
|
prioUp : function (element, ref) {
|
2017-10-14 16:27:21 +03:00
|
|
|
setPriorityFN('increase_prio');
|
2014-11-22 14:51:14 +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
|
|
|
},
|
|
|
|
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
|
|
|
|
|
|
|
DownloadLimit : function (element, ref) {
|
|
|
|
downloadLimitFN();
|
2014-11-22 14:51:14 +03:00
|
|
|
},
|
2014-12-09 19:54:35 +03:00
|
|
|
UploadLimit : function (element, ref) {
|
2014-11-22 14:51:14 +03:00
|
|
|
uploadLimitFN();
|
|
|
|
},
|
2017-08-06 12:04:39 +03:00
|
|
|
|
2014-12-09 19:54:35 +03:00
|
|
|
SequentialDownload : function (element, ref) {
|
|
|
|
toggleSequentialDownloadFN();
|
|
|
|
},
|
|
|
|
FirstLastPiecePrio : function (element, ref) {
|
|
|
|
toggleFirstLastPiecePrioFN();
|
2015-01-30 23:58:27 +03:00
|
|
|
},
|
2017-08-06 12:04:39 +03:00
|
|
|
|
2017-07-05 08:47:23 +03:00
|
|
|
AutoTorrentManagement : function (element, ref) {
|
|
|
|
autoTorrentManagementFN();
|
|
|
|
},
|
2017-08-06 12:04:39 +03:00
|
|
|
ForceRecheck : function (element, ref) {
|
|
|
|
recheckFN();
|
|
|
|
},
|
|
|
|
|
2015-01-30 23:58:27 +03:00
|
|
|
SuperSeeding : function (element, ref) {
|
|
|
|
setSuperSeedingFN(!ref.getItemChecked('SuperSeeding'));
|
2014-11-22 14:51:14 +03:00
|
|
|
}
|
|
|
|
},
|
|
|
|
offsets : {
|
|
|
|
x : -15,
|
|
|
|
y : 2
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2016-07-16 22:21:14 +03:00
|
|
|
torrentsTable.setup('torrentsTableDiv', 'torrentsTableFixedHeaderDiv', torrentsTableContextMenu);
|
2010-08-15 12:49:19 +04:00
|
|
|
</script>
|