YUI.add("moodle-course-formatchooser",function(e,t){var n=function(){n.superclass.constructor.apply(this,arguments)};e.extend(n,e.Base,{initializer:function(t){if(t&&t.formid){var n=e.one("#"+t.formid+" #id_updatecourseformat"),r=e.one("#"+t.formid+" #id_format");n&&r&&(n.setStyle("display","none"),r.on("change",function(){n.simulate("click")}))}}}),M.course=M.course||{},M.course.init_formatchooser=function(e){return new n(e)}},"@VERSION@",{requires:["base","node","node-event-simulate"]});
