gradereport_user/gradecategorytoggle

Javascript module for toggling the visibility of the grade categories in the user report.

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

Members

(static, constant) init

Source:

Init method.

Methods

(inner) registerListenerEvents(userReportId)

Source:

Register related event listeners.

Parameters:
Name Type Description
userReportId string

The ID of the user report container element.

(inner) toggleCategory(toggleElement)

Source:

Method that handles the category toggle action.

Parameters:
Name Type Description
toggleElement object

The category toggle node that was clicked.

(inner) updateParentCategoryRowspans(toggleElement, num)

Source:

Method that updates the rowspan value of all 'parent' category rows of a given category node.

Parameters:
Name Type Description
toggleElement object

The category toggle node that was clicked.

num int

The number we want to add or subtract from the rowspan value of the 'parent' category row elements.