From 2d6dfcde3e433c23f1599043ff6631ccca34b0bd Mon Sep 17 00:00:00 2001 From: Andrew Nicols Date: Tue, 3 Dec 2013 08:15:56 +0800 Subject: [PATCH] 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. --- course/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/course/lib.php b/course/lib.php index bbdad829248..b3c808b8c43 100644 --- a/course/lib.php +++ b/course/lib.php @@ -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'; }