mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-07 08:02:30 -06:00
Redesign Web API
Normalize Web API method names. Allow to use alternative Web UI. Switch Web API version to standard form (i.e. "2.0"). Improve Web UI translation code. Retranslate changed files. Add Web API for RSS subsystem.
This commit is contained in:
91
src/webui/www/private/transferlist.html
Normal file
91
src/webui/www/private/transferlist.html
Normal file
@@ -0,0 +1,91 @@
|
||||
<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();
|
||||
},
|
||||
|
||||
Rename : function(element, ref) {
|
||||
renameFN();
|
||||
},
|
||||
prioTop : function (element, ref) {
|
||||
setPriorityFN('top_prio');
|
||||
},
|
||||
prioUp : function (element, ref) {
|
||||
setPriorityFN('increase_prio');
|
||||
},
|
||||
prioDown : function (element, ref) {
|
||||
setPriorityFN('decrease_prio');
|
||||
},
|
||||
prioBottom : function (element, ref) {
|
||||
setPriorityFN('bottom_prio');
|
||||
},
|
||||
|
||||
DownloadLimit : function (element, ref) {
|
||||
downloadLimitFN();
|
||||
},
|
||||
UploadLimit : function (element, ref) {
|
||||
uploadLimitFN();
|
||||
},
|
||||
|
||||
SequentialDownload : function (element, ref) {
|
||||
toggleSequentialDownloadFN();
|
||||
},
|
||||
FirstLastPiecePrio : function (element, ref) {
|
||||
toggleFirstLastPiecePrioFN();
|
||||
},
|
||||
|
||||
AutoTorrentManagement : function (element, ref) {
|
||||
autoTorrentManagementFN();
|
||||
},
|
||||
ForceRecheck : function (element, ref) {
|
||||
recheckFN();
|
||||
},
|
||||
|
||||
SuperSeeding : function (element, ref) {
|
||||
setSuperSeedingFN(!ref.getItemChecked('SuperSeeding'));
|
||||
}
|
||||
},
|
||||
offsets : {
|
||||
x : -15,
|
||||
y : 2
|
||||
}
|
||||
});
|
||||
|
||||
torrentsTable.setup('torrentsTableDiv', 'torrentsTableFixedHeaderDiv', torrentsTableContextMenu);
|
||||
</script>
|
||||
Reference in New Issue
Block a user