diff --git a/course/lib.php b/course/lib.php index 8a4c1762021..815c00e0ab1 100644 --- a/course/lib.php +++ b/course/lib.php @@ -2013,9 +2013,16 @@ function course_get_cm_edit_actions(cm_info $mod, $indent = -1, $sr = null) { // Move. if ($hasmanageactivities) { + $pixicon = 'i/dragdrop'; + + if ($mod->course == SITEID) { + // Override for course frontpage until we get drag/drop working there. + $pixicon = 't/move'; + } + $actions['move'] = new action_menu_link_primary( new moodle_url($baseurl, array('copy' => $mod->id)), - new pix_icon('t/move', $str->move, 'moodle', array('class' => 'iconsmall', 'title' => '')), + new pix_icon($pixicon, $str->move, 'moodle', array('class' => 'iconsmall', 'title' => '')), $str->move, array('class' => 'editing_move status', 'data-action' => 'move') ); diff --git a/course/yui/dragdrop/dragdrop.js b/course/yui/dragdrop/dragdrop.js index fbf37284aad..6f95b59a84a 100644 --- a/course/yui/dragdrop/dragdrop.js +++ b/course/yui/dragdrop/dragdrop.js @@ -277,7 +277,7 @@ YUI.add('moodle-course-dragdrop', function(Y) { this.groups = ['resource']; this.samenodeclass = CSS.ACTIVITY; this.parentnodeclass = CSS.SECTION; - this.resourcedraghandle = this.get_drag_handle(M.str.moodle.move, CSS.EDITINGMOVE, CSS.ICONCLASS); + this.resourcedraghandle = this.get_drag_handle(M.str.moodle.move, CSS.EDITINGMOVE, CSS.ICONCLASS, true); // Go through all sections var sectionlistselector = M.course.format.get_section_selector(Y);