MDL-36990 feedback - added check for ->enableajax

This commit is contained in:
Andreas Grabs 2013-01-24 11:23:12 +01:00
parent 7eddca8c19
commit c76b19bf37

View File

@ -159,7 +159,7 @@ $PAGE->set_heading(format_string($course->fullname));
$PAGE->set_title(format_string($feedback->name));
//Adding the javascript module for the items dragdrop.
if ($do_show == 'edit') {
if ($do_show == 'edit' and $CFG->enableajax) {
$PAGE->requires->strings_for_js(array(
'pluginname',
'move_item',