mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 13:23:34 -07:00
WebUI: Fix path autofill in set location and new category
Attach `PathAutofill` after `DOMContentLoaded`. Also removed pathAutofill.js in newfolder.html since it's meant for new RSS folder name. PR #22773.
This commit is contained in:
parent
df987cc954
commit
f748a682ca
3 changed files with 7 additions and 7 deletions
|
@ -147,9 +147,9 @@
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
|
||||||
|
|
||||||
window.qBittorrent.pathAutofill.attachPathAutofill();
|
window.qBittorrent.pathAutofill.attachPathAutofill();
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,6 @@
|
||||||
<script src="scripts/localpreferences.js?v=${CACHEID}"></script>
|
<script src="scripts/localpreferences.js?v=${CACHEID}"></script>
|
||||||
<script src="scripts/color-scheme.js?v=${CACHEID}"></script>
|
<script src="scripts/color-scheme.js?v=${CACHEID}"></script>
|
||||||
<script src="scripts/misc.js?locale=${LANG}&v=${CACHEID}"></script>
|
<script src="scripts/misc.js?locale=${LANG}&v=${CACHEID}"></script>
|
||||||
<script src="scripts/pathAutofill.js?v=${CACHEID}"></script>
|
|
||||||
<script>
|
<script>
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
|
@ -62,15 +61,13 @@
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
window.qBittorrent.pathAutofill.attachPathAutofill();
|
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<div style="padding: 10px 10px 0px 10px;">
|
<div style="padding: 10px 10px 0px 10px;">
|
||||||
<label for="folderName" style="font-weight: bold;">QBT_TR(Folder name:)QBT_TR[CONTEXT=RSSWidget]</label>
|
<label for="folderName" style="font-weight: bold;">QBT_TR(Folder name:)QBT_TR[CONTEXT=RSSWidget]</label>
|
||||||
<input type="text" id="folderName" class="pathDirectory" style="width: 320px;">
|
<input type="text" id="folderName" style="width: 320px;">
|
||||||
<div style="text-align: center; padding-top: 10px;">
|
<div style="text-align: center; padding-top: 10px;">
|
||||||
<input type="button" value="QBT_TR(OK)QBT_TR[CONTEXT=HttpServer]" id="submitButton">
|
<input type="button" value="QBT_TR(OK)QBT_TR[CONTEXT=HttpServer]" id="submitButton">
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
<script src="scripts/localpreferences.js?v=${CACHEID}"></script>
|
<script src="scripts/localpreferences.js?v=${CACHEID}"></script>
|
||||||
<script src="scripts/color-scheme.js?v=${CACHEID}"></script>
|
<script src="scripts/color-scheme.js?v=${CACHEID}"></script>
|
||||||
<script src="scripts/misc.js?locale=${LANG}&v=${CACHEID}"></script>
|
<script src="scripts/misc.js?locale=${LANG}&v=${CACHEID}"></script>
|
||||||
|
<script src="scripts/pathAutofill.js?v=${CACHEID}"></script>
|
||||||
<script>
|
<script>
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
|
@ -62,6 +63,8 @@
|
||||||
window.parent.qBittorrent.Client.closeFrameWindow(window);
|
window.parent.qBittorrent.Client.closeFrameWindow(window);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
window.qBittorrent.pathAutofill.attachPathAutofill();
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
|
@ -69,7 +72,7 @@
|
||||||
<body>
|
<body>
|
||||||
<div style="padding: 10px 10px 0px 10px;">
|
<div style="padding: 10px 10px 0px 10px;">
|
||||||
<label for="setLocation" style="font-weight: bold;">QBT_TR(Location:)QBT_TR[CONTEXT=TransferListWidget]</label>
|
<label for="setLocation" style="font-weight: bold;">QBT_TR(Location:)QBT_TR[CONTEXT=TransferListWidget]</label>
|
||||||
<input type="text" id="setLocation" autocorrect="off" autocapitalize="none" style="width: 99%;">
|
<input type="text" id="setLocation" class="pathDirectory" autocorrect="off" autocapitalize="none" style="width: 99%;">
|
||||||
<div style="float: none; width: 99%;" id="error_div"> </div>
|
<div style="float: none; width: 99%;" id="error_div"> </div>
|
||||||
<div style="text-align: center; padding-top: 10px;">
|
<div style="text-align: center; padding-top: 10px;">
|
||||||
<input type="button" value="QBT_TR(Save)QBT_TR[CONTEXT=HttpServer]" id="setLocationButton">
|
<input type="button" value="QBT_TR(Save)QBT_TR[CONTEXT=HttpServer]" id="setLocationButton">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue