Skip to content
Snippets Groups Projects
Commit d9165ca5 authored by Kathrin Osswald's avatar Kathrin Osswald
Browse files

Fixed bug for the frontpage settings.

parent 9c660f35
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,7 @@ Changes
### Unreleased
* 2018-01-12 - Fixed bug for the frontpage settings.
* 2018-01-12 - Fixed bug for the profile editing button in admin view.
* 2018-01-11 - Fixed bug in the hierarchical displaying of lists within the course.
* 2017-12-05 - Added Workaround to travis.yml for fixing Behat tests with TravisCI.
......
define(["jquery"],function(a){"use strict";function b(){var b=a("#boost-campus-course-settings"),c=a("#boost-campus-activity-settings");a("#page-header .context-header-settings-menu").on("click",function(a){a.stopPropagation(),b.is(":visible")?b.hide(400):(b.show(400),c.is(":visible")&&c.hide(400))}),a("#region-main-settings-menu .action-menu .dropdown-toggle").on("click",function(a){a.stopPropagation(),c.is(":visible")?c.hide(400):(c.show(400),b.is(":visible")&&b.hide(400))})}return{init:function(){b()}}});
\ No newline at end of file
define(["jquery"],function(a){"use strict";function b(){var b=a("#boost-campus-course-settings"),c=a("#boost-campus-activity-settings"),d=a("body").hasClass("pagelayout-frontpage");d||(a("#page-header .context-header-settings-menu").on("click",function(a){a.stopPropagation(),b.is(":visible")?b.hide(400):(b.show(400),c.is(":visible")&&c.hide(400))}),a("#region-main-settings-menu .action-menu .dropdown-toggle").on("click",function(a){a.stopPropagation(),c.is(":visible")?c.hide(400):(c.show(400),b.is(":visible")&&b.hide(400))}))}return{init:function(){b()}}});
\ No newline at end of file
......@@ -30,7 +30,11 @@ define(['jquery'], function($) {
function initInCourseSettings() {
var courseSettings = $('#boost-campus-course-settings');
var activitySettings = $('#boost-campus-activity-settings');
var frontpage = $('body').hasClass('pagelayout-frontpage');
// Only change the behaviour if the setting is enabled and we are not on the frontpage,
// because we did not change the settings menu there. So we need the default propagation here.
if (!frontpage) {
$('#page-header .context-header-settings-menu').on('click', function (event) {
event.stopPropagation();
if (courseSettings.is(":visible")) {
......@@ -56,6 +60,7 @@ define(['jquery'], function($) {
}
});
}
}
return {
init: function() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment