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
diff options
context:
space:
mode:
Diffstat (limited to 'src/document.js')
-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('.')
})
}
})