Skip to content

Commit

Permalink
Fixes order of flash notice after delivery destroy.
Browse files Browse the repository at this point in the history
  • Loading branch information
robinboening committed Jun 15, 2012
1 parent e9ba451 commit 991087e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/controllers/alchemy_crm/admin/deliveries_controller.rb
Expand Up @@ -66,7 +66,8 @@ def update
def destroy
@delivery = Delivery.find(params[:id])
@delivery.destroy
render :js => "window.location.replace('#{admin_mailings_path}'); Alchemy.growl('#{alchemy_crm_t('successfully_canceled_delivery')}')"
flash[:notice] = alchemy_crm_t(:successfully_canceled_delivery)
render :js => "window.location.replace('#{admin_mailings_path}')"
end

private
Expand Down

0 comments on commit 991087e

Please sign in to comment.