core_grades/searchwidget/initials

A small dropdown to filter users within the gradebook.

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

Members

(static, constant) init

Source:

Our initial hook into the module which will eventually allow us to handle the dropdown initials bar form.

(inner) registered :boolean

Source:

Whether the event listener has already been registered for this module.

Type:
  • boolean

Methods

(inner) onClickVariables() → {Object}

Source:

A small abstracted helper function which allows us to ensure we have up-to-date lists of nodes.

Returns:
Type
Object

(inner) registerListenerEvents(callingLink, gpr_userid, gpr_search)

Source:

Register event listeners.

Parameters:
Name Type Default Description
callingLink String

The link to redirect upon form submission.

gpr_userid Null | Number null

The user id to filter by.

gpr_search Null | String null

The search value to filter by.

(inner) swapActiveItems(itemToReset, e)

Source:

Given we are provided the old li and current click event, swap around the active properties.

Parameters:
Name Type Description
itemToReset HTMLElement
e Event