mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
Merge pull request #1003 from piemonkey/main
Auto-select document name on edit if it's still the default
This commit is contained in:
commit
b09ccefe6f
@ -764,6 +764,10 @@ MessengerUI, Messages, Pages) {
|
||||
$input.val(inputVal);
|
||||
$input.show();
|
||||
$input.focus();
|
||||
if (inputVal === $input.attr('placeholder')) {
|
||||
// Placeholder is the default name, select text to make editing easier
|
||||
$input.select();
|
||||
}
|
||||
$pencilIcon.hide();
|
||||
$saveIcon.show();
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user