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"),i=n.ancestor("fieldset"),s=e.one("form.mform").get("action");n&&r&&(n.setStyle("display","none"),r.on("change",function(){e.one("form.mform").set("action",s+"#"+i.get("id")),n.simulate("click")}))}}}),M.course=M.course||{},M.course.init_formatchooser=function(e){return new n(e)}},"@VERSION@",{requires:["base","node","node-event-simulate"]});
