Skip to content

Instantly share code, notes, and snippets.

@jeffstieler
Created June 17, 2015 17:58
Show Gist options
  • Save jeffstieler/00f6a166c8b38202c988 to your computer and use it in GitHub Desktop.
Save jeffstieler/00f6a166c8b38202c988 to your computer and use it in GitHub Desktop.
Janrain change validation message (hack)
janrain.events.onCaptureValidationFailed.addHandler(function(obj) {
if ( ( 'capture_traditionalRegistration_emailAddress' == obj.field.id ) && ( 'Email address is already being used.' === obj.message ) ) {
jQuery( obj.field ).siblings( 'div.capture_tip_error' ).text( 'Totally in use dude.' );
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment