Skip to content

Instantly share code, notes, and snippets.

@timcowlishaw
Created June 12, 2009 10:44
Show Gist options
  • Save timcowlishaw/128568 to your computer and use it in GitHub Desktop.
Save timcowlishaw/128568 to your computer and use it in GitHub Desktop.
messages: {
"profile[terms_and_conditions]": function() {
alert("Callback");
//We want to make sure there's a line break after the message for this one.
if($("p.t_and_cs br").length == 0) {
$("p.t_and_cs strong").before("<br />");
}
return("Please agree to the terms and conditions");
}, //etc...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment