| Server IP : 172.67.187.206 / Your IP : 172.71.28.156 Web Server : Apache/2.4.25 (Win32) OpenSSL/1.0.2j PHP/5.6.30 System : Windows NT WIN-ECQAAA40806 6.2 build 9200 (Windows Server 2012 Standard Edition) i586 User : SYSTEM ( 0) PHP Version : 5.6.30 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Inetpub/www/myschool/triamudom/tuprblearn/grade/grading/yui/manage/ |
Upload File : |
/**
* YUI module for advanced grading methods - the manage page
*
* @author David Mudrak <[email protected]>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
YUI.add('moodle-core_grading-manage', function(Y) {
var MANAGE = function() {
MANAGE.superclass.constructor.apply(this, arguments);
}
Y.extend(MANAGE, Y.Base, {
initializer : function(config) {
this.setup_messagebox();
},
setup_messagebox : function() {
Y.one('#actionresultmessagebox span').setContent(M.util.get_string('clicktoclose', 'core_grading'));
Y.one('#actionresultmessagebox').on('click', function(e) {
e.halt();
var box = e.currentTarget;
var anim = new Y.Anim({
node: box,
duration: 1,
to: { opacity: 0, height: 0 },
});
anim.run();
anim.on('end', function() {
var box = this.get('node'); // this === anim
box.remove(true);
});
});
}
}, {
NAME : 'grading_manage_page',
ATTRS : { }
});
M.core_grading = M.core_grading || {};
M.core_grading.init_manage = function(config) {
return new MANAGE(config);
}
}, '@VERSION@', { requires:['base', 'anim'] });