do not allow empty file name in Save As dialog

master^2
Andras Timar 6 år sedan
förälder f732b2f72e
incheckning 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});
}
},

Laddar…
Avbryt
Spara