mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
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:
parent
9b37cd72a2
commit
69353dcecd
1 changed files with 1 additions and 1 deletions
|
@ -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';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue