mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-01-10 00:57:24 +03:00
66 lines
2.2 KiB
HTML
66 lines
2.2 KiB
HTML
<table class="torrentTable" cellpadding="0" cellspacing="0" style="-webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;">
|
|
<thead>
|
|
<tr id="torrentsTableHeader">
|
|
</tr>
|
|
</thead>
|
|
<tbody id="torrentsTable"></tbody>
|
|
</table>
|
|
|
|
<script type="text/javascript">
|
|
|
|
//create a context menu
|
|
var torrents_table_context_menu = new ContextMenu({
|
|
targets : '.menu-target',
|
|
menu : 'contextmenu',
|
|
actions : {
|
|
Delete : function (element, ref) {
|
|
deleteFN();
|
|
},
|
|
Start : function (element, ref) {
|
|
startFN();
|
|
},
|
|
Pause : function (element, ref) {
|
|
pauseFN();
|
|
},
|
|
ForceStart : function (element, ref) {
|
|
setForceStartFN();
|
|
},
|
|
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();
|
|
},
|
|
UploadLimit : function (element, ref) {
|
|
uploadLimitFN();
|
|
},
|
|
DownloadLimit : function (element, ref) {
|
|
downloadLimitFN();
|
|
},
|
|
SequentialDownload : function (element, ref) {
|
|
toggleSequentialDownloadFN();
|
|
},
|
|
FirstLastPiecePrio : function (element, ref) {
|
|
toggleFirstLastPiecePrioFN();
|
|
},
|
|
SuperSeeding : function (element, ref) {
|
|
setSuperSeedingFN(!ref.getItemChecked('SuperSeeding'));
|
|
}
|
|
},
|
|
offsets : {
|
|
x : -15,
|
|
y : 2
|
|
}
|
|
});
|
|
|
|
torrentsTable.setup('torrentsTable', 'torrentsTableHeader', torrents_table_context_menu);
|
|
</script>
|