qBittorrent/src/webui/www/public/transferlist.html
Tom Piccirello 07a85a1018 Set torrent location from webui context menu (addresses #6815) (#7062)
* Add option to set torrent location from webui context menu (addresses #6815)

* Update debug messages

* Use logger

* Remove redundant curly braces

* Remove message

* Use log message from transferlistwidget

* Use QDir

* Remove unused import

* Check if newLocation is an empty string
2017-08-06 17:04:39 +08:00

85 lines
2.4 KiB
HTML

<div id="torrentsTableFixedHeaderDiv" class="dynamicTableFixedHeaderDiv">
<table class="dynamicTable unselectable" style="position:relative;">
<thead>
<tr class="dynamicTableHeader"></tr>
</thead>
</table>
</div>
<div id="torrentsTableDiv" class="dynamicTableDiv">
<table class="dynamicTable unselectable">
<thead>
<tr class="dynamicTableHeader"></tr>
</thead>
<tbody></tbody>
</table>
</div>
<script type="text/javascript">
//create a context menu
var torrentsTableContextMenu = new TorrentsTableContextMenu({
targets : '.torrentsTableContextMenuTarget',
menu : 'torrentsTableMenu',
actions : {
Start : function (element, ref) {
startFN();
},
Pause : function (element, ref) {
pauseFN();
},
ForceStart : function (element, ref) {
setForceStartFN();
},
Delete : function (element, ref) {
deleteFN();
},
SetLocation : function (element, ref) {
setLocationFN();
},
prioTop : function (element, ref) {
setPriorityFN('topPrio');
},
prioUp : function (element, ref) {
setPriorityFN('increasePrio');
},
prioDown : function (element, ref) {
setPriorityFN('decreasePrio');
},
prioBottom : function (element, ref) {
setPriorityFN('bottomPrio');
},
DownloadLimit : function (element, ref) {
downloadLimitFN();
},
UploadLimit : function (element, ref) {
uploadLimitFN();
},
SequentialDownload : function (element, ref) {
toggleSequentialDownloadFN();
},
FirstLastPiecePrio : function (element, ref) {
toggleFirstLastPiecePrioFN();
},
ForceRecheck : function (element, ref) {
recheckFN();
},
SuperSeeding : function (element, ref) {
setSuperSeedingFN(!ref.getItemChecked('SuperSeeding'));
}
},
offsets : {
x : -15,
y : 2
}
});
torrentsTable.setup('torrentsTableDiv', 'torrentsTableFixedHeaderDiv', torrentsTableContextMenu);
</script>