2009-11-23 23:16:17 +03:00
|
|
|
<table class="torrentTable" cellpadding="0" cellspacing="0">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2014-11-05 00:00:00 +03:00
|
|
|
<th style="width: 0"></th>
|
2009-11-27 18:48:45 +03:00
|
|
|
<th onClick="setSortedColumn(1);" style="cursor: pointer;">_(Name)</th>
|
|
|
|
<th id='prioHeader' onClick="setSortedColumn(2);" style="cursor: pointer;">#</th>
|
|
|
|
<th onClick="setSortedColumn(3);" style="cursor: pointer;">_(Size)</th>
|
|
|
|
<th style="width: 90px;cursor: pointer;" onClick="setSortedColumn(4);">_(Done)</th>
|
|
|
|
<th onClick="setSortedColumn(5);" style="cursor: pointer;">_(Seeds)</th>
|
|
|
|
<th onClick="setSortedColumn(6);" style="cursor: pointer;">_(Peers)</th>
|
|
|
|
<th onClick="setSortedColumn(7);" style="cursor: pointer;">_(Down Speed)</th>
|
|
|
|
<th onClick="setSortedColumn(8);" style="cursor: pointer;">_(Up Speed)</th>
|
2009-11-23 23:16:17 +03:00
|
|
|
<th>_(ETA)</th>
|
2009-11-27 18:48:45 +03:00
|
|
|
<th onClick="setSortedColumn(10);" style="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">
|
|
|
|
|
|
|
|
//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();
|
|
|
|
},
|
2010-08-15 12:49:19 +04: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');
|
|
|
|
},
|
2009-11-24 22:41:31 +03:00
|
|
|
ForceRecheck: function(element, ref) {
|
|
|
|
recheckFN();
|
2009-11-25 13:03:04 +03:00
|
|
|
},
|
|
|
|
UploadLimit: function(element, red) {
|
|
|
|
uploadLimitFN();
|
|
|
|
},
|
|
|
|
DownloadLimit: function(element, red) {
|
|
|
|
downloadLimitFN();
|
2009-11-24 22:41:31 +03:00
|
|
|
}
|
|
|
|
},
|
|
|
|
offsets: { x:-15, y:2 }
|
|
|
|
});
|
|
|
|
|
|
|
|
myTable.setup('myTable', 4, context_menu);
|
|
|
|
|
2010-08-15 12:49:19 +04:00
|
|
|
</script>
|