Skip to content

Instantly share code, notes, and snippets.

@kcrwfrd
Created March 24, 2011 23:39
Show Gist options
  • Save kcrwfrd/886110 to your computer and use it in GitHub Desktop.
Save kcrwfrd/886110 to your computer and use it in GitHub Desktop.
$(document).ready(function(){
$('#register').colorbox({
inline: true,
close: "close [x]",
scrolling: false,
onComplete: function(){
$('#registration-form').validate({
invalidHandler: function(form, validator) {
setTimeout(function(){ $.colorbox.resize(); }, 1);
},
onfocusout: false,
submitHandler: function(form){
$(form).ajaxSubmit({
success: function(){
alert('success!');
}
});
return false;
}
});
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment