WebUI: Implement subcategories

PR #18740.
This commit is contained in:
Bartu Özen
2023-04-02 11:02:22 +03:00
committed by GitHub
parent 40e28930a4
commit b55d4b1733
10 changed files with 86 additions and 7 deletions

View File

@@ -44,6 +44,10 @@
$('savePath').set('value', window.qBittorrent.Misc.escapeHtml(uriSavePath));
$('savePath').focus();
}
else if (uriAction === "createSubcategory") {
$('categoryName').set('value', window.qBittorrent.Misc.escapeHtml(uriCategoryName));
$('categoryName').focus();
}
else {
$('categoryName').focus();
}
@@ -95,6 +99,7 @@
}).send();
break;
case "create":
case "createSubcategory":
if (!verifyCategoryName(categoryName))
return;