diff --git a/app/controllers/finance/balancing_controller.rb b/app/controllers/finance/balancing_controller.rb index 98c4dde7..d17da816 100644 --- a/app/controllers/finance/balancing_controller.rb +++ b/app/controllers/finance/balancing_controller.rb @@ -33,7 +33,10 @@ class Finance::BalancingController < ApplicationController :order => sort ) - case params[:view] + view = params[:view] + params[:view] = nil + + case view when 'editResults' render :partial => 'edit_results_by_articles' and return when 'groupsOverview' @@ -41,15 +44,6 @@ class Finance::BalancingController < ApplicationController when 'articlesOverview' render :partial => 'shared/articles_by_articles', :locals => {:order => @order} and return end - - respond_to do |format| - format.html # new.haml - format.js do - render :update do |page| - page.replace_html 'results', :partial => "edit_results_by_articles" - end - end - end end def edit_note