Skip to content

Instantly share code, notes, and snippets.

@kmelkon
Created July 23, 2013 12:15
Show Gist options
  • Save kmelkon/6061920 to your computer and use it in GitHub Desktop.
Save kmelkon/6061920 to your computer and use it in GitHub Desktop.
application.js
$(function(){
$('.delete_post').bind('ajax:success', function() {
$(this).closest('tr').fadeOut();
});
$("#form").submit(function() {
$post($(this).attr("action") + '.js', $(this).serialize(), null, "script");
return false;
});
$(".submits").bind('ajax:success', function() {
$("#form-container").append("<h1>hello </h1>");
})
$(".example5").colorbox({width:"40%",
height:"100%",
iframe:true,
href:"posts/new",
scrolling:false,
});
$('.inline').colorbox({inline:true});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment