Last active
August 19, 2019 11:55
-
-
Save JudeRosario/f11b6d801ea18fd0eba7a8cc30962c96 to your computer and use it in GitHub Desktop.
Private - Custom code for Healthjobs.ch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(document).ready(function($){ | |
if (window.location.href.indexOf("unternehmens-profil") > -1) { | |
$('.upme-fire-editor-view').trigger('click'); | |
$('.upme-profile-edit-bar').hide(); | |
$('.gt3-page-title.gt3-page-title__dashboard').hide(); | |
$('#billing_email-1, #billing_email-2-1').on('blur', function(){ | |
if($.trim($('#billing_email-1').val()) !== $.trim($('#billing_email-2-1').val())) { | |
$('#billing_email-1, #billing_email-2-1').addClass('error'); | |
$('#billing_email-1').after('<div id="upme-match-email-msg" class="upme-input-text-inline-error" ><i id="upme-reg-email-img" original-title="Invalid" class="upme-icon upme-icon-remove upme-input-text-font-cancel" ></i>' + 'Email addresses should match' + '</div>'); | |
} | |
}); | |
$('#billing_email-1, #billing_email-2-1').on('focus', function(){ | |
$('#billing_email-1, #billing_email-2-1').removeClass('error'); | |
$('#upme-match-email-msg').remove(); | |
}); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment