mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-11 15:27:54 +00:00
WebUI: Fix wrong file renaming selection range
This commit is contained in:
parent
b44816305f
commit
af6cae0e09
@ -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…
Reference in New Issue
Block a user