Commit fa61762a authored by Maxime's avatar Maxime
Browse files

bugfix: display successful email sent

parent 6def81aa
......@@ -201,7 +201,7 @@ setTimeout(function(){
setTimeout(function(){
//If we want to have field for newsletter in contact EO email
//then uncomment below
//newsletterAutoFormFill();
newsletterAutoFormFill();
},1500)
},500)
});
......@@ -265,6 +265,7 @@ function GetSearchValue(){
SCRIPT TO DISPLAY CONTENT AFTER SUBMITTING EMAIL
====================================================*/
function ContentAfterRepresentativeEmail(){
console.log("about to show content");
document.querySelectorAll('#contactEmailContent')[0].style.display = 'none';
document.querySelectorAll('.twitterBlock')[0].style.display = 'none';
document.querySelectorAll('#contactTwitterContent')[0].style.display = 'block';
......@@ -336,6 +337,7 @@ Makes form below bug & not show
fields="step-2-content(step-2,row-info(firstname, lastname),step-2-info,
userEmail,email-notice),
newsletter(newsLetterSignUp),
row-email(
step-3,
notice,
......@@ -401,6 +403,13 @@ Makes form below bug & not show
value-email-notice="Cette adresse sera utilisée pour envoyer l'email et permettre à l'élu.e de vous répondre."
widget-newsLetterSignUp = "sib-form-placeholder-dropdown"
label-newsLetterSignUp="Voulez vous recevoir des nouvelles de cette campagne ?"
class-newsLetterSignUp="newsLetterSignUp"
child-newsLetterSignUp="newsLetterOptions"
range-newsLetterSignUp="{{request.scheme}}://{{ request.META.HTTP_HOST }}/api/informnewsletteroptions/"
submit-button="Envoyer"
>
......
......@@ -661,7 +661,7 @@ Le : <span id="currentDate"></span>
CheckMandatoryField("input[name=lastname]","Nom");
CheckMandatoryField("input[name=userEmail]","Email");
//uncomment bellow to make newsletter mandatory
//CheckMandatoryField("select[name=newsLetterSignUp]","Newsletter");
CheckMandatoryField("select[name=newsLetterSignUp]","Newsletter");
CheckMandatoryField("input[name=electedEmails]","Adresse de vos élu.e.s");
CheckEmailContentChange();
CheckEmailFormat();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment