[ Index ] |
PHP Cross Reference of moodle-2.8 |
[Summary view] [Print] [Text view]
1 var FORMATCHOOSER = function() { 2 FORMATCHOOSER.superclass.constructor.apply(this, arguments); 3 }; 4 5 Y.extend(FORMATCHOOSER, Y.Base, { 6 initializer : function(params) { 7 if (params && params.formid) { 8 var updatebut = Y.one('#'+params.formid+' #id_updatecourseformat'); 9 var formatselect = Y.one('#'+params.formid+' #id_format'); 10 if (updatebut && formatselect) { 11 updatebut.setStyle('display', 'none'); 12 formatselect.on('change', function() { 13 updatebut.simulate('click'); 14 }); 15 } 16 } 17 } 18 }); 19 20 M.course = M.course || {}; 21 M.course.init_formatchooser = function(params) { 22 return new FORMATCHOOSER(params); 23 };
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 |