Browse Source

WebUI: Fix wrong file renaming selection range

adaptive-webui-19844
MR 5 years ago
parent
commit
af6cae0e09
  1. 2
      src/webui/www/private/rename_file.html

2
src/webui/www/private/rename_file.html

@ -38,7 +38,7 @@ @@ -38,7 +38,7 @@
const decodedName = decodeURIComponent(name);
$('rename').value = decodedName;
$('rename').focus();
$('rename').setSelectionRange(0, decodedName.indexOf('.'));
$('rename').setSelectionRange(0, decodedName.lastIndexOf('.'));
$('renameButton').addEvent('click', function(e) {
new Event(e).stop();

Loading…
Cancel
Save