qbank_preview/preview

Description:
  • Javascript for preview.

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

Javascript for preview.

Methods

(inner) autocompleteOff(form)

Description:
  • Set the autocomplete off.

Source:
Parameters:
Name Type Description
form object

The form element.

(inner) init(redirect, url)

Description:
  • Set up the actions.

Source:
Parameters:
Name Type Description
redirect bool

Redirect.

url string

url to redirect.

(inner) preventRepeatSubmission(form)

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

Source:
Parameters:
Name Type Description
form object

The form element.

(inner) removeClass(classname, form)

Description:
  • Removes a class inside an element.

Source:
Parameters:
Name Type Description
classname string

Class name.

form object

The form element.

(inner) scrollToSavedPos(form)

Description:
  • 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.)

Source:
Parameters:
Name Type Description
form object

The form element.

(inner) setupQuestionForm(formElement)

Description:
  • Set up the form element to be displayed.

Source:
Parameters:
Name Type Description
formElement string

The form element.