X-Git-Url: http://git.moodle.org/gw?p=moodle.git;a=blobdiff_plain;f=course%2Fcategory.php;h=7751058d787f2b89e6434d59520485b5cf79c0cd;hp=1da4ce5d50f705b7cd9f5e945ecc054fa9c83ed0;hb=48d53d9fd6ca3d0a2bbb8bce35406d38802198e7;hpb=cd665c200d3eade1e741b82a9629ecb4d484aace diff --git a/course/category.php b/course/category.php index 1da4ce5d50f..7751058d787 100644 --- a/course/category.php +++ b/course/category.php @@ -435,8 +435,11 @@ if (!$courses) { $movetocategories[$category->id] = get_string('moveselectedcoursesto'); echo ''; echo html_writer::label(get_string('moveselectedcoursesto'), 'movetoid', false, array('class' => 'accesshide')); - echo html_writer::select($movetocategories, 'moveto', $category->id, null, array('id'=>'movetoid')); - $PAGE->requires->js_init_call('M.util.init_select_autosubmit', array('movecourses', 'movetoid', false)); + echo html_writer::select($movetocategories, 'moveto', $category->id, null, array('id'=>'movetoid', 'class' => 'autosubmit')); + $PAGE->requires->yui_module('moodle-core-formautosubmit', + 'M.core.init_formautosubmit', + array(array('selectid' => 'movetoid', 'nothing' => $category->id)) + ); echo ''; echo ''; }