mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-15 09:43:07 -07:00
Merge pull request #9066 from AltruisticCompany/setlocation
Show current save path in 'Set location' window
This commit is contained in:
commit
c66738dc05
2 changed files with 12 additions and 3 deletions
|
@ -403,17 +403,20 @@ initializeWindows = function() {
|
|||
setLocationFN = function() {
|
||||
var hashes = torrentsTable.selectedRowsIds();
|
||||
if (hashes.length) {
|
||||
var hash = hashes[0];
|
||||
var row = torrentsTable.rows[hash];
|
||||
var path = encodeURIComponent(row.full_data.save_path);
|
||||
new MochaUI.Window({
|
||||
id: 'setLocationPage',
|
||||
title: "QBT_TR(Set location)QBT_TR[CONTEXT=TransferListWidget]",
|
||||
loadMethod: 'iframe',
|
||||
contentURL: 'setlocation.html?hashes=' + hashes.join('|'),
|
||||
contentURL: 'setlocation.html?hashes=' + hashes.join('|') + '&path=' + path,
|
||||
scrollbars: false,
|
||||
resizable: false,
|
||||
maximizable: false,
|
||||
paddingVertical: 0,
|
||||
paddingHorizontal: 0,
|
||||
width: 250,
|
||||
width: 400,
|
||||
height: 100
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue