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:
parent
32fdfce5e3
commit
534347dc47
|
@ -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.
|
||||
|
|
4
util.js
4
util.js
|
@ -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';
|
||||
|
|
Loading…
Reference in a new issue