app/controllers/week_plan_controller.rb
def move()
    logger.debug( "\r\n\r\n---[ #{controller_name()}.move ] ---" ) if DEBUG_VERBOSE
                                                    # == Ajax update (POST):
    if request.xhr?                                 # POST/Ajax call issued? Retrieve X-reference hash and parse the drag move:
      dom_xref_hash = session["#{controller_name()}_dom_xref_hash".to_sym]
      parse_drag_move_operation(params[:from], params[:to], dom_xref_hash ) if ( dom_xref_hash && params[:from] && params[:to] )
      manage()

    else                                            # == Simple HTML render (GET):
      flash[:warning] = as_('Nothing to do.')
      redirect_to main_week_plan_path()
    end 
  end
# Moves either an Appointment or a Schedule note from a date to another or to an empty slot, via AJAX request.
#
Moves either an Appointment or a Schedule note from a date to another or to an empty slot, via AJAX request.
Moves either an Appointment or a Schedule note from a date to another or to an empty slot via AJAX request .
def move()
    logger.debug( "\r\n\r\n---[ #{controller_name()}.move ] ---" ) if DEBUG_VERBOSE
    if request.xhr?                                 
      dom_xref_hash = session["#{controller_name()}_dom_xref_hash".to_sym]
      parse_drag_move_operation(params[:from], params[:to], dom_xref_hash ) if ( dom_xref_hash && params[:from] && params[:to] )
      manage()
    else                                            
      flash[:warning] = as_('Nothing to do.')
      redirect_to main_week_plan_path()
    end 
  end
def move ( ) logger . debug ( "\r\n\r\n---[ #{controller_name()}.move ] ---" ) if DEBUG_VERBOSE if request . xhr? dom_xref_hash = session [ "#{controller_name()}_dom_xref_hash" . to_sym ] parse_drag_move_operation ( params [ :from ] , params [ :to ] , dom_xref_hash ) if ( dom_xref_hash && params [ :from ] && params [ :to ] ) manage ( ) else flash [ :warning ] = as_ ( 'Nothing to do.' ) redirect_to main_week_plan_path ( ) end end
Moves either an Appointment or a Schedule note from a date to another or to an empty slot, via AJAX request.
Moves either an Appointment or a Schedule note from a date to another or to an empty slot via AJAX request .
# == Ajax update (POST): # POST/Ajax call issued? Retrieve X-reference hash and parse the drag move: # == Simple HTML render (GET):