mirror of
https://github.com/ronggang/transmission-web-control.git
synced 2025-04-22 18:53:16 +00:00
commit
0bbe64d286
@ -79,6 +79,9 @@
|
|||||||
{
|
{
|
||||||
$.merge(downloadDirs,system.dictionary.folders.split("\n"));
|
$.merge(downloadDirs,system.dictionary.folders.split("\n"));
|
||||||
}
|
}
|
||||||
|
downloadDirs = downloadDirs.map(item => {
|
||||||
|
return item[item.length - 1] == '/' ? item.slice(0, -1) : item;
|
||||||
|
});
|
||||||
downloadDirs = uniq(downloadDirs);
|
downloadDirs = uniq(downloadDirs);
|
||||||
|
|
||||||
if (system.config.hideSubfolders == false && system.currentListDir != null && system.currentListDir != "") {
|
if (system.config.hideSubfolders == false && system.currentListDir != null && system.currentListDir != "") {
|
||||||
|
@ -68,6 +68,9 @@
|
|||||||
{
|
{
|
||||||
$.merge(downloadDirs,system.dictionary.folders.split("\n"));
|
$.merge(downloadDirs,system.dictionary.folders.split("\n"));
|
||||||
}
|
}
|
||||||
|
downloadDirs = downloadDirs.map(item => {
|
||||||
|
return item[item.length - 1] == '/' ? item.slice(0, -1) : item;
|
||||||
|
});
|
||||||
downloadDirs = uniq(downloadDirs);
|
downloadDirs = uniq(downloadDirs);
|
||||||
|
|
||||||
if (system.config.hideSubfolders == false && system.currentListDir != null && system.currentListDir != "") {
|
if (system.config.hideSubfolders == false && system.currentListDir != null && system.currentListDir != "") {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user