You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All mcen-yearMenuItemLI elements are having the following style attribute applied to them: display: none;
This seems to be due to Drupal behavior for hiding overflowing items from a menu:
/**
* If menu is too wide for one line, hide overflowing items.
*/
Drupal.behaviors.longMainMenu = {
attach: function( context ) {
var longMenuEl = $( ".sf-main-menu > li.first" );
/*
* Page loads completely before measuring which menu items are on the line.
* If other menu items are displayed below (i.e. in second line) hide
* them.
*/
setTimeout(function(){
// Execute only if menu has more than one item.
if ( longMenuEl.length > 0 ) {
// Get top position of regular menu items
var topLocation = longMenuEl.position().top;
// Make sure loop has only run once.
var hasLooped = false;
if(!hasLooped) {
$( ".sf-main-menu > li" ).each( function() {
if ( $( this ).position().top != topLocation ) {
$( this ).hide();
}
});
// Prevents multiple loops.
hasLooped = true;
}
}
}, 800);
}
};
hide: function(a, b, c) {
if (a || a === 0) return this.animate(cc("hide", 3), a, b, c);
for (var e = 0, f = this.length; e < f; e++) {
var g = d.css(this[e], "display");
g !== "none" && !d._data(this[e], "olddisplay") && d._data(this[e], "olddisplay", g)
}
for (e = 0; e < f; e++) this[e].style.display = "none";
return this
},
All mcen-yearMenuItemLI elements are having the following style attribute applied to them:
display: none;
This seems to be due to Drupal behavior for hiding overflowing items from a menu:
source: https://www.mcgill.ca/study/2014-2015/files/study.2014-2015/js/js_1ElH_15kX_bq7jptFK0fLDW6Ljruj1633N7OWPR3e_4.js
The hide function is defined as follows:
source: https://www.mcgill.ca/study/2014-2015/sites/all/libraries/modernizr/modernizr.js?opa6td
The text was updated successfully, but these errors were encountered: