2016-01-07 10:07:50 +03:00
|
|
|
<table class="torrentTable" cellpadding="0" cellspacing="0">
|
2014-12-24 04:39:18 +03:00
|
|
|
<thead>
|
2016-01-20 12:43:32 +03:00
|
|
|
<tr id="torrentsTableHeader" class="dynamicTableHeader">
|
2014-12-24 04:39:18 +03:00
|
|
|
</tr>
|
|
|
|
</thead>
|
2015-11-11 22:58:30 +03:00
|
|
|
<tbody id="torrentsTable"></tbody>
|
2014-12-24 04:39:18 +03:00
|
|
|
</table>
|
2009-11-24 22:41:31 +03:00
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
2014-11-22 14:51:14 +03:00
|
|
|
//create a context menu
|
2015-11-11 23:04:39 +03:00
|
|
|
var torrents_table_context_menu = new ContextMenu({
|
2014-11-22 14:51:14 +03:00
|
|
|
targets : '.menu-target',
|
|
|
|
menu : 'contextmenu',
|
|
|
|
actions : {
|
|
|
|
Delete : function (element, ref) {
|
|
|
|
deleteFN();
|
|
|
|
},
|
|
|
|
Start : function (element, ref) {
|
|
|
|
startFN();
|
|
|
|
},
|
|
|
|
Pause : function (element, ref) {
|
|
|
|
pauseFN();
|
|
|
|
},
|
2015-07-14 04:06:34 +03:00
|
|
|
ForceStart : function (element, ref) {
|
|
|
|
setForceStartFN();
|
|
|
|
},
|
2014-11-22 14:51:14 +03:00
|
|
|
prioTop : function (element, ref) {
|
|
|
|
setPriorityFN('topPrio');
|
|
|
|
},
|
|
|
|
prioUp : function (element, ref) {
|
|
|
|
setPriorityFN('increasePrio');
|
|
|
|
},
|
|
|
|
prioDown : function (element, ref) {
|
|
|
|
setPriorityFN('decreasePrio');
|
|
|
|
},
|
|
|
|
prioBottom : function (element, ref) {
|
|
|
|
setPriorityFN('bottomPrio');
|
|
|
|
},
|
|
|
|
ForceRecheck : function (element, ref) {
|
|
|
|
recheckFN();
|
|
|
|
},
|
2014-12-09 19:54:35 +03:00
|
|
|
UploadLimit : function (element, ref) {
|
2014-11-22 14:51:14 +03:00
|
|
|
uploadLimitFN();
|
|
|
|
},
|
2014-12-09 19:54:35 +03:00
|
|
|
DownloadLimit : function (element, ref) {
|
2014-11-22 14:51:14 +03:00
|
|
|
downloadLimitFN();
|
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
|
|
|
},
|
|
|
|
SuperSeeding : function (element, ref) {
|
|
|
|
setSuperSeedingFN(!ref.getItemChecked('SuperSeeding'));
|
2014-11-22 14:51:14 +03:00
|
|
|
}
|
|
|
|
},
|
|
|
|
offsets : {
|
|
|
|
x : -15,
|
|
|
|
y : 2
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2015-11-11 23:04:39 +03:00
|
|
|
torrentsTable.setup('torrentsTable', 'torrentsTableHeader', torrents_table_context_menu);
|
2010-08-15 12:49:19 +04:00
|
|
|
</script>
|