     if modal
       $('body').css('overflow', 'hidden')
       # // need to center during the fadeIn animation
-      modal.fadeIn duration: 200,
-      progress: ->
-        centerModal(modal)
-      done: ->
-        addModalResizeListener(modal)
-
+      modal.fadeIn duration: 200
       Modals.currentModals.push modal
 
       if callbacks

          callbacks.forEach((callback) -> if _.isFunction(callback) then callback(htmlResponse))

        $('body').css('overflow', 'hidden')
        centerModal(modal)
        addModalResizeListener(modal)

    ).fail((jqXHR, textStatus, errorThrown) ->


        <h2>Loading...</h2>
      </div>
    """

##Override the default confirm dialog by rails
#$.rails.allowAction = (link) ->
