1
1
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:
Dane Everitt 2017-01-03 17:37:43 -05:00
parent 130aa6cc8a
commit b8b0e0bdf9
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53
3 changed files with 4 additions and 2 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -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 (