mirror of
https://github.com/pterodactyl/panel.git
synced 2024-11-22 09:02:28 +01:00
Select the whole field when renaming a file.
This commit is contained in:
parent
130aa6cc8a
commit
b8b0e0bdf9
2
public/js/filemanager.min.js
vendored
2
public/js/filemanager.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -139,6 +139,8 @@ class ActionsClass {
|
||||
const inputLoader = nameBlock.find('.input-loader');
|
||||
|
||||
inputField.focus();
|
||||
inputField.setSelectionRange(inputField.val().length * 2, inputField.val().length * 2);
|
||||
|
||||
inputField.on('blur keydown', e => {
|
||||
// Save Field
|
||||
if (
|
||||
|
Loading…
Reference in New Issue
Block a user