mod_assign/grading_form_change_checker

Simple method to check for changes to a form between two points in time.

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

Methods

(inner) checkFormForChanges(selector) → {Boolean}

Source:

Compare the current values in the form to the previously saved state.

Parameters:
Name Type Description
selector String

The selector for the form element.

Returns:

True if there are changes to the form data.

Type
Boolean

(inner) saveFormState(selector)

Source:

Save the values in the form to a data attribute so they can be compared later for changes.

Parameters:
Name Type Description
selector String

The selector for the form element.