// Place all the behaviors and hooks related to the matching controller here.
// All this logic will automatically be available in application.js.
$(function(){var a=$("#new-tweet-dialog"),b=a.find("form");b.bind("ajax:before",function(){var b;(b=a.data("ajax-indicator"))?b.show():(b=$ajax_indicator.clone(),a.data("ajax-indicator",b),a.find(".modal-footer").prepend(b))}).bind("ajax:complete",function(){a.data("ajax-indicator").hide(),b[0].reset(),a.modal("hide")}),a.find("#publish-new-tweet").click(function(){b.submit()})})
