From 6d60e621aa23098b78ec91c7d66b48c4bef7bcec Mon Sep 17 00:00:00 2001 From: Andras Timar Date: Sun, 18 Feb 2018 00:35:42 +0100 Subject: [PATCH] do not allow empty file name in Save As dialog --- js/documents.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/documents.js b/js/documents.js index 97b5b699..8488c8dd 100644 --- a/js/documents.js +++ b/js/documents.js @@ -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}); } },