Skip to content

Instantly share code, notes, and snippets.

@dewski
Forked from anonymous/gist:222913
Created October 31, 2009 05:06
Show Gist options
  • Save dewski/222914 to your computer and use it in GitHub Desktop.
Save dewski/222914 to your computer and use it in GitHub Desktop.
<script type="text/javascript" charset="utf-8">
$(document).ready(function(){
$('a[rel*=facebox]').facebox({
loading_image : 'loading.gif',
close_image : 'closelabel.gif'
});
$('#project_form').live("submit", function(e){
e.preventDefault();
$.post(
'new_project.php',
$(this).serialize(),
function(data){
$.facebox(data);
}
);
});
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment