Browse Source

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

master
Sébastien Lucas 9 years ago
parent
commit
534347dc47
2 changed files with 5 additions and 0 deletions
  1. +1
    -0
      CHANGELOG
  2. +4
    -0
      util.js

+ 1
- 0
CHANGELOG View File

@@ -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
- 0
util.js View File

@@ -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…
Cancel
Save