mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-07 13:41:26 -07:00
Add save path and editing to WebUI new category dialog
This commit is contained in:
parent
a0e6007fc1
commit
63c53766b4
12 changed files with 197 additions and 71 deletions
|
@ -120,3 +120,14 @@ function escapeHtml(str) {
|
|||
div.appendChild(document.createTextNode(str));
|
||||
return div.innerHTML;
|
||||
}
|
||||
|
||||
function safeTrim(value) {
|
||||
try {
|
||||
return value.trim();
|
||||
}
|
||||
catch (e) {
|
||||
if (e instanceof TypeError)
|
||||
return "";
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue