Fixed remote and non-remote link mixtures bug.
This commit is contained in:
parent
8fb4334610
commit
596f5657bc
1 changed files with 4 additions and 10 deletions
|
@ -33,7 +33,10 @@ class Finance::BalancingController < ApplicationController
|
||||||
:order => sort
|
:order => sort
|
||||||
)
|
)
|
||||||
|
|
||||||
case params[:view]
|
view = params[:view]
|
||||||
|
params[:view] = nil
|
||||||
|
|
||||||
|
case view
|
||||||
when 'editResults'
|
when 'editResults'
|
||||||
render :partial => 'edit_results_by_articles' and return
|
render :partial => 'edit_results_by_articles' and return
|
||||||
when 'groupsOverview'
|
when 'groupsOverview'
|
||||||
|
@ -41,15 +44,6 @@ class Finance::BalancingController < ApplicationController
|
||||||
when 'articlesOverview'
|
when 'articlesOverview'
|
||||||
render :partial => 'shared/articles_by_articles', :locals => {:order => @order} and return
|
render :partial => 'shared/articles_by_articles', :locals => {:order => @order} and return
|
||||||
end
|
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
|
end
|
||||||
|
|
||||||
def edit_note
|
def edit_note
|
||||||
|
|
Loading…
Reference in a new issue