app/controllers/configuration_controller.rb
# AJAX driven routine for background color selection
AJAX driven routine for background color selection
AJAX driven routine for background color selection
def bg_color_changed
    @edit = session[:edit]
    @edit[:new][:display][:bg_color] = params[:bg_color]      
    session[:changed] = (@edit[:new] != @edit[:current])
    @changed = session[:changed]
    render :update do |page|                    
      page.replace 'tab_div', :partial => "ui_1"
    end
  end
def bg_color_changed @edit = session [ :edit ] @edit [ :new ] [ :display ] [ :bg_color ] = params [ :bg_color ] 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 background color selection
AJAX driven routine for background color selection
# ui1 bgcolor changed # Capture the new setting # Use JS to update the display