app/controllers/configuration_controller.rb
# AJAX driven routine for gtl view selection
AJAX driven routine for gtl view selection
AJAX driven routine for gtl view selection
def view_selected
    return unless load_edit("config_edit__ui2", "configuration")
    @edit[:new][:views][VIEW_RESOURCES[params[:resource]]] = params[:view] 
    session[:changed] = (@edit[:new] != @edit[:current])
    @changed = session[:changed]
    render :update do |page|                    
      page.replace 'tab_div', :partial => "ui_2"
    end
  end
def view_selected return unless load_edit ( "config_edit__ui2" , "configuration" ) @edit [ :new ] [ :views ] [ VIEW_RESOURCES [ params [ :resource ] ] ] = params [ :view ] session [ :changed ] = ( @edit [ :new ] != @edit [ :current ] ) @changed = session [ :changed ] render :update do | page | page . replace 'tab_div' , :partial => "ui_2" end end
AJAX driven routine for gtl view selection
AJAX driven routine for gtl view selection
# ui2 form # Capture the new view setting # Use JS to update the display