app/controllers/configuration_controller.rb
def nav_style_changed
    @edit = session[:edit]
    @edit[:new][:display][:nav_style] = params[:nav_style]    # Capture the new setting
    session[:changed] = (@edit[:new] != @edit[:current])
    @changed = session[:changed]
    render :update do |page|                    # Use JS to update the display
      page.replace 'tab_div', :partial => "ui_1"
    end
  end
# AJAX driven routine for nav style selection
AJAX driven routine for nav style selection
AJAX driven routine for nav style selection
def nav_style_changed
    @edit = session[:edit]
    @edit[:new][:display][:nav_style] = params[:nav_style]    
    session[:changed] = (@edit[:new] != @edit[:current])
    @changed = session[:changed]
    render :update do |page|                    
      page.replace 'tab_div', :partial => "ui_1"
    end
  end
def nav_style_changed @edit = session [ :edit ] @edit [ :new ] [ :display ] [ :nav_style ] = params [ :nav_style ] session [ :changed ] = ( @edit [ :new ] != @edit [ :current ] ) @changed = session [ :changed ] render :update do | page | page . replace 'tab_div' , :partial => "ui_1" end end
AJAX driven routine for nav style selection
AJAX driven routine for nav style selection
# Capture the new setting # Use JS to update the display