2009-11-23 23:16:17 +03:00
|
|
|
<table class="torrentTable" cellpadding="0" cellspacing="0">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2014-12-08 23:00:00 +03:00
|
|
|
<th style="width: 16px"></th>
|
|
|
|
<th onClick="setSortedColumn('name');" style="min-width: 200px; cursor: pointer">_(Name)</th>
|
|
|
|
<th id='prioHeader' onClick="setSortedColumn('priority');" style="width: 90px; cursor: pointer">#</th>
|
|
|
|
<th onClick="setSortedColumn('size');" style="width: 100px; cursor: pointer">_(Size)</th>
|
|
|
|
<th onClick="setSortedColumn('progress');" style="width: 80px; cursor: pointer">_(Done)</th>
|
|
|
|
<th onClick="setSortedColumn('num_seeds');" style="width: 100px; cursor: pointer">_(Seeds)</th>
|
|
|
|
<th onClick="setSortedColumn('num_leechs');" style="width: 100px; cursor: pointer">_(Peers)</th>
|
|
|
|
<th onClick="setSortedColumn('dlspeed');" style="width: 100px; cursor: pointer">_(Down Speed)</th>
|
|
|
|
<th onClick="setSortedColumn('upspeed');" style="width: 100px; cursor: pointer">_(Up Speed)</th>
|
|
|
|
<th onClick="setSortedColumn('eta');" style="width: 100px; cursor: pointer">_(ETA)</th>
|
|
|
|
<th onClick="setSortedColumn('ratio');" style="width: 100px; cursor: pointer">_(Ratio)</th>
|
2009-11-23 23:16:17 +03:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody id="myTable"></tbody>
|
|
|
|
</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
|
|
|
|
var context_menu = new ContextMenu({
|
|
|
|
targets : '.menu-target',
|
|
|
|
menu : 'contextmenu',
|
|
|
|
actions : {
|
|
|
|
Delete : function (element, ref) {
|
|
|
|
deleteFN();
|
|
|
|
},
|
|
|
|
DeleteHD : function (element, ref) {
|
|
|
|
deleteHDFN();
|
|
|
|
},
|
|
|
|
Start : function (element, ref) {
|
|
|
|
startFN();
|
|
|
|
},
|
|
|
|
Pause : function (element, ref) {
|
|
|
|
pauseFN();
|
|
|
|
},
|
|
|
|
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();
|
2014-11-22 14:51:14 +03:00
|
|
|
}
|
|
|
|
},
|
|
|
|
offsets : {
|
|
|
|
x : -15,
|
|
|
|
y : 2
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
myTable.setup('myTable', 4, context_menu);
|
2010-08-15 12:49:19 +04:00
|
|
|
</script>
|