app/controllers/application_controller.rb
# Control blinds effects on nav panel divs
Control blinds effects on nav panel divs
Control blinds effects on nav panel divs
def panel_control
    @keep_compare = true
    panel = params[:panel]
    render :update do |page|
      if @panels[panel] == 'down'
        @panels[panel] = 'up'
        page << "$('##{j_str(panel)}').slideUp('medium');"
      else
        @panels[panel] = 'down'
        page << "$('##{j_str(panel)}').slideDown('medium');"
      end
    end
  end
def panel_control @keep_compare = true panel = params [ :panel ] render :update do | page | if @panels [ panel ] == 'down' @panels [ panel ] = 'up' page << "$('##{j_str(panel)}').slideUp('medium');" else @panels [ panel ] = 'down' page << "$('##{j_str(panel)}').slideDown('medium');" end end end
Control blinds effects on nav panel divs
Control blinds effects on nav panel divs
# FIXME: the @panels end up in the session eventually #        so there's a issue with the possibility of inserting arbitrary #        keys to the hash