Skip to content

Commit

Permalink
Admin, email Testing
Browse files Browse the repository at this point in the history
Fixes a failure when we try to send a test mail from the Admin.
verifyMail was returning false if the email address size was superior to 0, so always !

Regards
  • Loading branch information
Comkwatt committed Oct 17, 2014
1 parent 893c6a2 commit 8dc358c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -1365,7 +1365,7 @@ function verifyMail(testMsg, testSubject)
$("#mailResultCheck").slideDown("slow");

//local verifications
if ($("#testEmail[value=]").length > 0)
if (!($("#testEmail").val().length > 0))
{
$("#mailResultCheck").addClass("alert-danger").removeClass("alert-success").removeClass('userInfos').html(errorMail);
return false;
Expand Down

0 comments on commit 8dc358c

Please sign in to comment.