Browse Source

do not allow empty file name in Save As dialog

master^2
Andras Timar 1 year ago
parent
commit
6d60e621aa
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      js/documents.js

+ 1
- 1
js/documents.js View File

@@ -395,7 +395,7 @@ var documentsMain = {
OC.dialogs.prompt(t('richdocuments', 'Please enter the filename to store the document as.'),
t('richdocuments', 'Save As'),
function(result, value) {
if (result === true) {
if (result === true && value) {
documentsMain.WOPIPostMessage($('#loleafletframe')[0], 'Action_SaveAs', {'Filename': value});
}
},

Loading…
Cancel
Save