2 * YUI module for advanced grading methods - the manage page
4 * @author David Mudrak <david@moodle.com>
5 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
7 YUI.add('moodle-core_grading-manage', function(Y) {
9 var MANAGE = function() {
10 MANAGE.superclass.constructor.apply(this, arguments);
13 Y.extend(MANAGE, Y.Base, {
15 initializer : function(config) {
16 this.setup_messagebox();
19 setup_messagebox : function() {
20 Y.one('#actionresultmessagebox span').setContent(M.util.get_string('clicktoclose', 'core_grading'));
21 Y.one('#actionresultmessagebox').on('click', function(e) {
23 var box = e.currentTarget;
24 var anim = new Y.Anim({
27 to: { opacity: 0, height: 0 },
30 anim.on('end', function() {
31 var box = this.get('node'); // this === anim
38 NAME : 'grading_manage_page',
42 M.core_grading = M.core_grading || {};
44 M.core_grading.init_manage = function(config) {
45 return new MANAGE(config);
48 }, '@VERSION@', { requires:['base', 'anim'] });