[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/grade/grading/form/guide/amd/src/ -> comment_chooser.js (summary)

AMD code for the frequently used comments chooser for the marking guide grading form.

Copyright: 2015 Jun Pataleta <jun@moodle.com>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 140 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 2 functions

  displayChooserDialog()
  generateCommentsChooser()

Functions
Functions that are not part of a class:

displayChooserDialog(compiledSource, comments)   X-Ref
Display the chooser dialog using the compiled HTML from the mustache template
and binds onclick events for the generated comment options.

param: {String} compiledSource The compiled HTML from the mustache template
param: {Array} comments Array containing comments.

generateCommentsChooser()   X-Ref
Generates the comments chooser dialog from the grading_form/comment_chooser mustache template.




Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1