hide the modal after an action!

This commit is contained in:
Matteo Manzinello 2019-09-17 00:29:56 +02:00
parent e32177213b
commit d06681ad58
3 changed files with 9 additions and 2 deletions

2
dist/mailgo.min.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -476,6 +476,8 @@ const actions = {
if (bodyMail) gmailUrl = gmailUrl.concat("&body=" + bodyMail); if (bodyMail) gmailUrl = gmailUrl.concat("&body=" + bodyMail);
window.open(gmailUrl, "_blank"); window.open(gmailUrl, "_blank");
hideMailgo();
}, },
openOutlook: () => { openOutlook: () => {
@ -486,25 +488,30 @@ const actions = {
if (bodyMail) outlookUrl = outlookUrl.concat("&body=" + bodyMail); if (bodyMail) outlookUrl = outlookUrl.concat("&body=" + bodyMail);
window.open(outlookUrl, "_blank"); window.open(outlookUrl, "_blank");
hideMailgo();
}, },
openDefault: () => { openDefault: () => {
mailToEncoded(encEmail); mailToEncoded(encEmail);
hideMailgo();
}, },
openTelegram: () => { openTelegram: () => {
let tgUrl = "tg://msg?text=" + msg + "&to=" + tel; let tgUrl = "tg://msg?text=" + msg + "&to=" + tel;
window.open(tgUrl, "_blank"); window.open(tgUrl, "_blank");
hideMailgo();
}, },
openWhatsApp: () => { openWhatsApp: () => {
let waUrl = "https://wa.me/" + tel; let waUrl = "https://wa.me/" + tel;
window.open(waUrl, "_blank"); window.open(waUrl, "_blank");
hideMailgo();
}, },
callDefault: () => { callDefault: () => {
let callUrl = "tel:" + tel; let callUrl = "tel:" + tel;
window.open(callUrl); window.open(callUrl);
hideMailgo();
}, },
copy: content => { copy: content => {