Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/richdocuments.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorgokaysatir <gokaysatir@gmail.com>2020-04-21 21:56:09 +0300
committergokaysatir <gokaysatir@gmail.com>2020-04-21 22:04:38 +0300
commit494718fab777c796b9a2f224ac9b70b2a2c02b6c (patch)
tree34034fac26595e2727cda782df767d313eb8ccde /src
parentd16b4c458f1c081d218b289a0137482bcacca821 (diff)
Save as dialog - show current file name and select it.
Signed-off-by: gokaysatir <gokaysatir@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/document.js4
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('.')
})
}
})