qbank_preview/preview

Javascript for preview.

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

Methods

(inner) autocompleteOff(form)

Source:

Set the autocomplete off.

Parameters:
Name Type Description
form object

The form element.

(inner) init(redirect, url)

Source:

Set up the actions.

Parameters:
Name Type Description
redirect bool

Redirect.

url string

url to redirect.

(inner) preventRepeatSubmission(form)

Source:

Event handler to stop a question form being submitted more than once.

Parameters:
Name Type Description
form object

The form element.

(inner) removeClass(classname, form)

Source:

Removes a class inside an element.

Parameters:
Name Type Description
classname string

Class name.

form object

The form element.

(inner) scrollToSavedPos(form)

Source:

If there is a parameter like scrollpos=123 in the URL, scroll to that saved position. (Note: Moodle 4.0 and above do NOT support Internet Explorer 11 and below.)

Parameters:
Name Type Description
form object

The form element.

(inner) setupQuestionForm(formElement)

Source:

Set up the form element to be displayed.

Parameters:
Name Type Description
formElement string

The form element.