;(function(){$("#alert-test-submit").click(function(){var $form;$form=$(this).closest("form");$(this).button("loading");$.ajax({url:$form[0].action,type:"POST",data:$form.serialize(),success:(function(_this){return function(){return $(_this).button("success");};})(this),error:(function(_this){return function(){return $(_this).button("error");};})(this)});return false;});}).call(this);