AMD code for the frequently used comments chooser for the marking guide grading form.
- Source:
- Copyright:
- 2015 Jun Pataleta
- 2015 Jun Pataleta
- License:
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Methods
(static) initialise(criterionId, buttonId, remarkId, commentOptions)
Initialises the module.
Basically, it performs the binding and handling of the button click event for the 'Insert frequently used comment' button.
Parameters:
Name | Type | Description |
---|---|---|
criterionId |
Integer | The criterion ID. |
buttonId |
String | The element ID of the button which the handler will be bound to. |
remarkId |
String | The element ID of the remark text area where the text of the selected comment will be copied to. |
commentOptions |
Array | The array of frequently used comments to be used as options. |