When you cancel the email prompt : no need to set the email cookie and abort all the function. re #79

This commit is contained in:
Sébastien Lucas 2014-07-24 15:59:18 +02:00
джерело 32fdfce5e3
коміт 534347dc47
2 змінених файлів з 5 додано та 0 видалено

@ -10,6 +10,7 @@
* Added an empty line at the end of .htaccess to make it easier to modify. Reported by Mariosipad.
* Modified the README and checkconfig.php to check for php5-json. Reported by Mariosipad.
* Added a new bootstrap template.
* Handled properly the cancelling of a mail. Reported by coach0742.
1.0.0RC1 - 20140404
* Updated English, Spanish, German, Italian, Portuguese, Dutch translation files. Huge thanks to all to the translators.

@ -101,6 +101,10 @@ function sendToMailAddress (component, dataid) {
var email = $.cookie ('email');
if (!$.cookie ('email')) {
email = window.prompt (currentData.c.i18n.customizeEmail, "");
if (email === null)
{
return;
}
$.cookie ('email', email, { expires: 365 });
}
var url = 'sendtomail.php';