static/js/ep_email.js
function showAlreadyRegistered(type){
  if (type == "malformedEmail") {
    var msg = window._('ep_email_notifications.msgEmailMalformed');
  } else if (type == "alreadyRegistered") {
    var msg = window._('ep_email_notifications.msgAlreadySubscr');
  } else {
    var msg = window._('ep_email_notifications.msgUnknownErr');
  }
  $.gritter.add({
    // (string | mandatory) the heading of the notification
    title: window._('ep_email_notifications.titleGritterSubscr'),
    // (string | mandatory) the text inside the notification
    text: msg,
    // (int | optional) the time you want it to be alive for before fading out
    time: 7000,
    // (string | optional) add a class name to the gritter msg
    class_name: "emailNotificationsSubscrResponseBad"
  });

}
function showAlreadyRegistered(type){
  if (type == "malformedEmail") {
    var msg = window._('ep_email_notifications.msgEmailMalformed');
  } else if (type == "alreadyRegistered") {
    var msg = window._('ep_email_notifications.msgAlreadySubscr');
  } else {
    var msg = window._('ep_email_notifications.msgUnknownErr');
  }
  $.gritter.add({
    // (string | mandatory) the heading of the notification
    title: window._('ep_email_notifications.titleGritterSubscr'),
    // (string | mandatory) the text inside the notification
    text: msg,
    // (int | optional) the time you want it to be alive for before fading out
    time: 7000,
    // (string | optional) add a class name to the gritter msg
    class_name: "emailNotificationsSubscrResponseBad"
  });

}
function showAlreadyRegistered ( type ) { if ( type == "malformedEmail" ) { var msg = window . _ ( 'ep_email_notifications.msgEmailMalformed' ) ; } else if ( type == "alreadyRegistered" ) { var msg = window . _ ( 'ep_email_notifications.msgAlreadySubscr' ) ; } else { var msg = window . _ ( 'ep_email_notifications.msgUnknownErr' ) ; } $ . gritter . add ( { // (string | mandatory) the heading of the notification title : window . _ ( 'ep_email_notifications.titleGritterSubscr' ) , // (string | mandatory) the text inside the notification text : msg , // (int | optional) the time you want it to be alive for before fading out time : 7000 , // (string | optional) add a class name to the gritter msg class_name : "emailNotificationsSubscrResponseBad" } ) ; }
The client already registered for emails on this pad so notify the UI
The client already registered for emails on this pad so notify the UI