diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2015-11-02 09:49:03 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2015-11-02 10:09:13 +0100 |
commit | f04151f69bccae0e0702b433e68e7936db3f9172 (patch) | |
tree | 9ee0b492d9bb93dbf6e06747073888df0cb1b356 /core/js | |
parent | 2afc14e19578c67a2cc4a631d12bc5d5f630735e (diff) | |
download | nextcloud-server-f04151f69bccae0e0702b433e68e7936db3f9172.tar.gz nextcloud-server-f04151f69bccae0e0702b433e68e7936db3f9172.zip |
Close the user menu when clicking it again
Diffstat (limited to 'core/js')
-rw-r--r-- | core/js/js.js | 2 | ||||
-rw-r--r-- | core/js/tests/specs/coreSpec.js | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/core/js/js.js b/core/js/js.js index a3efb64e4bd..460f65256a9 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -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 diff --git a/core/js/tests/specs/coreSpec.js b/core/js/tests/specs/coreSpec.js index 3ebe55305f7..f653fc88637 100644 --- a/core/js/tests/specs/coreSpec.js +++ b/core/js/tests/specs/coreSpec.js @@ -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>' + |