and $formatajax->capable
and !empty($USER->editing)
and ajaxenabled($formatajax->testedbrowsers)
- and $PAGE->theme->disablecourseajax
+ and $PAGE->theme->enablecourseajax
and has_capability('moodle/course:manageactivities', $context)) {
$PAGE->requires->yui2_lib('dragdrop');
$PAGE->requires->yui2_lib('connection');
*/
public $larrow = null;
+ /**
+ * Some themes may want to disable ajax course editing.
+ * @var bool
+ */
+ public $enablecourseajax = true;
//==Following properties are not configurable from theme config.php==
*/
public $hidefromselector = false;
- /**
- * Some themes may want to disable ajax course editing.
- * @var bool
- */
- public $disablecourseajax = false;
/**
* Instance of the renderer_factory implementation
* we are using. Implementation detail.
}
$configurable = array('parents', 'sheets', 'parents_exclude_sheets', 'plugins_exclude_sheets', 'javascripts', 'javascripts_footer',
- 'parents_exclude_javascripts', 'layouts', 'resource_mp3player_colors', 'enable_dock', 'disablecourseajax',
+ 'parents_exclude_javascripts', 'layouts', 'resource_mp3player_colors', 'enable_dock', 'enablecourseajax',
'filter_mediaplugin_colors', 'rendererfactory', 'csspostprocess', 'editor_sheets', 'rarrow', 'larrow', 'hidefromselector');
foreach ($config as $key=>$value) {