diff options
author | gokaysatir <gokaysatir@gmail.com> | 2020-04-21 21:56:09 +0300 |
---|---|---|
committer | gokaysatir <gokaysatir@gmail.com> | 2020-04-21 22:04:38 +0300 |
commit | 494718fab777c796b9a2f224ac9b70b2a2c02b6c (patch) | |
tree | 34034fac26595e2727cda782df767d313eb8ccde | |
parent | d16b4c458f1c081d218b289a0137482bcacca821 (diff) |
Save as dialog - show current file name and select it.
Signed-off-by: gokaysatir <gokaysatir@gmail.com>
-rw-r--r-- | src/document.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/document.js b/src/document.js index 515243c6..e400fbfd 100644 --- a/src/document.js +++ b/src/document.js @@ -341,6 +341,10 @@ const documentsMain = { var $buttons = $dialog.find('button') $buttons.eq(0).text(t('richdocuments', 'Cancel')) $buttons.eq(1).text(t('richdocuments', 'Save')) + var nameInput = $dialog.find('input')[0] + nameInput.value = documentsMain.fileName + nameInput.selectionStart = 0 + nameInput.selectionEnd = documentsMain.fileName.lastIndexOf('.') }) } }) |