mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-02 13:48:05 -06:00
- Added right-click menu to transfer list
This commit is contained in:
@@ -17,6 +17,33 @@
|
||||
</thead>
|
||||
<tbody id="myTable"></tbody>
|
||||
</table>
|
||||
<script>
|
||||
myTable.setup('myTable', 4);
|
||||
</script>
|
||||
|
||||
<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();
|
||||
},
|
||||
ForceRecheck: function(element, ref) {
|
||||
recheckFN();
|
||||
}
|
||||
},
|
||||
offsets: { x:-15, y:2 }
|
||||
});
|
||||
|
||||
myTable.setup('myTable', 4, context_menu);
|
||||
|
||||
</script>
|
||||
Reference in New Issue
Block a user