mod_assign/grading_actions

Description:
  • Javascript controller for the "Actions" panel at the bottom of the page.

Source:
Since:
  • 3.1
License:
  • http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Javascript controller for the "Actions" panel at the bottom of the page.

Classes

mod_assign/grading_actions

Methods

(inner) collapseGradePanel()

Description:
  • Show/Hide the grade panel.

Source:

(inner) collapseReviewPanel()

Description:
  • Hide the review panel.

Source:

(inner) expandAllPanels()

Description:
  • Return the layout to default.

Source:

(inner) getCollapseGradePanelButton() → {jQuery}

Description:
  • Get the collapse grade panel button.

Source:
Returns:
Type
jQuery

(inner) getCollapseReviewPanelButton() → {jQuery}

Description:
  • Get the collapse review panel button.

Source:
Returns:
Type
jQuery

(inner) getExpandAllPanelsButton() → {jQuery}

Description:
  • Get the expand all panels button.

Source:
Returns:
Type
jQuery

(inner) getPanelSplit() → {Number}

Description:
  • Get the CSS variable for panel split.

Source:
Returns:

The current panel split percentage.

Type
Number

(inner) getResizePanelsElement() → {HTMLElement}

Description:
  • Get the review slider element.

Source:
Returns:

The resizer element or null if not found.

Type
HTMLElement

(inner) getReviewPanelElement() → {jQuery}

Description:
  • Get the review panel element.

Source:
Returns:
Type
jQuery

(inner) hasReviewPanelElement() → {bool}

Description:
  • Check if the page has a review panel.

Source:
Returns:
Type
bool

(inner) onResizeEnd()

Description:
  • When user releases the mouse button, finishing resizing, we stop tracking the mouse movement.

Source:

(inner) onResizeStart()

Description:
  • This function enabled the tracking of mouse movement for resizing.

Source:

(inner) onResizing(e)

Description:
  • Handle the resize action.

Source:
Parameters:
Name Type Description
e Event

The mousemove event.

(inner) registerEventListeners()

Description:
  • Register event listeners for the grade panel.

Source:

(inner) resetLayoutButtons()

Description:
  • Remove the active state from all layout buttons.

Source:

(inner) setPanelSplit(percentage)

Description:
  • Set the CSS variable for panel split.

Source:
Parameters:
Name Type Description
percentage Number

The percentage to set.