do not allow empty file name in Save As dialog
This commit is contained in:
parent
f732b2f72e
commit
6d60e621aa
@ -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…
x
Reference in New Issue
Block a user