[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 /** 2 * YUI module for advanced grading methods - the manage page 3 * 4 * @author David Mudrak <david@moodle.com> 5 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later 6 */ 7 YUI.add('moodle-core_grading-manage', function(Y) { 8 9 var MANAGE = function() { 10 MANAGE.superclass.constructor.apply(this, arguments); 11 } 12 13 Y.extend(MANAGE, Y.Base, { 14 15 initializer : function(config) { 16 this.setup_messagebox(); 17 }, 18 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) { 22 e.halt(); 23 var box = e.currentTarget; 24 var anim = new Y.Anim({ 25 node: box, 26 duration: 1, 27 to: { opacity: 0, height: 0 }, 28 }); 29 anim.run(); 30 anim.on('end', function() { 31 var box = this.get('node'); // this === anim 32 box.remove(true); 33 }); 34 }); 35 } 36 37 }, { 38 NAME : 'grading_manage_page', 39 ATTRS : { } 40 }); 41 42 M.core_grading = M.core_grading || {}; 43 44 M.core_grading.init_manage = function(config) { 45 return new MANAGE(config); 46 } 47 48 }, '@VERSION@', { requires:['base', 'anim'] });
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |