[ Index ] |
PHP Cross Reference of moodle-2.8 |
[Summary view] [Print] [Text view]
1 YUI.add('moodle-course-formatchooser', function (Y, NAME) { 2 3 var FORMATCHOOSER = function() { 4 FORMATCHOOSER.superclass.constructor.apply(this, arguments); 5 }; 6 7 Y.extend(FORMATCHOOSER, Y.Base, { 8 initializer : function(params) { 9 if (params && params.formid) { 10 var updatebut = Y.one('#'+params.formid+' #id_updatecourseformat'); 11 var formatselect = Y.one('#'+params.formid+' #id_format'); 12 if (updatebut && formatselect) { 13 updatebut.setStyle('display', 'none'); 14 formatselect.on('change', function() { 15 updatebut.simulate('click'); 16 }); 17 } 18 } 19 } 20 }); 21 22 M.course = M.course || {}; 23 M.course.init_formatchooser = function(params) { 24 return new FORMATCHOOSER(params); 25 }; 26 27 28 }, '@VERSION@', {"requires": ["base", "node", "node-event-simulate"]});
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Nov 28 20:29:05 2014 | Cross-referenced by PHPXref 0.7.1 |