mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-21 05:43:32 -07:00
Merge pull request #12916 from mr-cn/master
WebUI: Fix wrong file renaming selection range
This commit is contained in:
commit
446d308bf0
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@
|
||||||
const decodedName = decodeURIComponent(name);
|
const decodedName = decodeURIComponent(name);
|
||||||
$('rename').value = decodedName;
|
$('rename').value = decodedName;
|
||||||
$('rename').focus();
|
$('rename').focus();
|
||||||
$('rename').setSelectionRange(0, decodedName.indexOf('.'));
|
$('rename').setSelectionRange(0, decodedName.lastIndexOf('.'));
|
||||||
|
|
||||||
$('renameButton').addEvent('click', function(e) {
|
$('renameButton').addEvent('click', function(e) {
|
||||||
new Event(e).stop();
|
new Event(e).stop();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue