MDL-43164 JavaScript: Use the up/down move icon for non-AJAX courses

When a course format does not support AJAX, or AJAX is disabled at the site
level, we should revert back to the old-style move icon.

This helps to clarify that you cannot drag/drop the icon, but must click
instead.
This commit is contained in:
Andrew Nicols 2013-12-03 08:15:56 +08:00
parent 9b37cd72a2
commit 69353dcecd

View file

@ -2175,7 +2175,7 @@ function course_get_cm_move(cm_info $mod, $sr = null) {
if ($hasmanageactivities) {
$pixicon = 'i/dragdrop';
if ($mod->course == SITEID) {
if (!course_ajax_enabled($mod->get_course())) {
// Override for course frontpage until we get drag/drop working there.
$pixicon = 't/move';
}