Try to warn user when switching between filemodes in compose dialog, also indicate each filemode with an icon.

This commit is contained in:
Hadi Nategh
2018-07-12 15:42:07 +02:00
parent cc3e00f9f1
commit 50d02bff81
4 changed files with 65 additions and 2 deletions

View File

@ -266,6 +266,7 @@ app.classes.filemanager = AppJS.extend(
params['preset[file]['+i+']'] = 'vfs://default'+attachments[i];
content.data.files.file.push('vfs://default'+attachments[i]);
}
content.data.files.filemode = params['preset[filemode]'];
// always open compose in html mode, as attachment links look a lot nicer in html
params.mimeType = 'html';
return egw.openWithinWindow("mail", "setCompose", content, params, /mail.mail_compose.compose/);