setupMainMenu();
// move triangle of apps dropdown to align with app name triangle
- // 68 is the additional offset coming from the logo width
+ // 2 is the additional offset between the triangles
if($('#navigation').length) {
$('#header #owncloud + .menutoggle').one('click', function(){
var caretPosition = $('.header-appname + .icon-caret').offset().left - 2;
beforeEach(function() {
clock = sinon.useFakeTimers();
$('#testArea').append('<div id="header">' +
- '<a class="menutoggle" href="#"></a>' +
+ '<a class="menutoggle" href="#">' +
+ '<h1 class="header-appname"></h1>' +
+ '<div class="icon-caret"></div>' +
+ '</a>' +
'</div>' +
'<div id="navigation"></div>');
$toggle = $('#header').find('.menutoggle');