app/controllers/dashboard_controller.rb
# Accept window sizes from the client
Accept window sizes from the client
Accept window sizes from the client
def window_sizes
    session[:winH] = params[:height] if params[:height]
    session[:winW] = params[:width] if params[:width]
    if params[:exp_left] && params[:exp_controller]
      session[:sandboxes][params[:exp_controller]][:exp_left] = params[:exp_left]
    end
    head :ok 
  end
def window_sizes session [ :winH ] = params [ :height ] if params [ :height ] session [ :winW ] = params [ :width ] if params [ :width ] if params [ :exp_left ] && params [ :exp_controller ] session [ :sandboxes ] [ params [ :exp_controller ] ] [ :exp_left ] = params [ :exp_left ] end head :ok end
Accept window sizes from the client
Accept window sizes from the client
# Set the left divider position in the controller's sandbox # No response required