Merge pull request #20215 from owncloud/issue-20178-close-user-menu-on-reclick

Close the user menu when clicking it again
This commit is contained in:
Thomas Müller 2015-11-02 11:27:29 +01:00
commit be5552981a
3 changed files with 3 additions and 4 deletions

View file

@ -1295,7 +1295,7 @@ function initCore() {
*/
function setupMainMenu() {
// toggle the navigation
var $toggle = $('#header .menutoggle');
var $toggle = $('#header .header-appname-container');
var $navigation = $('#navigation');
// init the menu

View file

@ -458,12 +458,11 @@ describe('Core base tests', function() {
var clock;
var $toggle;
var $navigation;
var clock;
beforeEach(function() {
clock = sinon.useFakeTimers();
$('#testArea').append('<div id="header">' +
'<a class="menutoggle" href="#">' +
'<a class="menutoggle header-appname-container" href="#">' +
'<h1 class="header-appname"></h1>' +
'<div class="icon-caret"></div>' +
'</a>' +

View file

@ -63,7 +63,7 @@
<div id="logo-claim" style="display:none;"><?php p($theme->getLogoClaim()); ?></div>
<div id="settings" class="svg">
<div id="expand" tabindex="6" role="link">
<div id="expand" tabindex="6" role="link" class="menutoggle">
<?php if ($_['enableAvatars']): ?>
<div class="avatardiv<?php if ($_['userAvatarSet']) { print_unescaped(' avatardiv-shown'); } else { print_unescaped('" style="display: none'); } ?>">
<?php if ($_['userAvatarSet']): ?>