summaryrefslogtreecommitdiffstats
path: root/core/js
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <hey@jancborchardt.net>2014-02-20 13:36:52 +0100
committerJan-Christoph Borchardt <hey@jancborchardt.net>2014-02-20 13:36:52 +0100
commit92d57cb5a7de41e576c9cbd3fae70e9802561187 (patch)
treea4f6ad71b58c83a9cba3ede9e803d8c3e6e5b386 /core/js
parent3e2c56157bfb20fbc48bdf668bd56fb47bd7cc1f (diff)
downloadnextcloud-server-92d57cb5a7de41e576c9cbd3fae70e9802561187.tar.gz
nextcloud-server-92d57cb5a7de41e576c9cbd3fae70e9802561187.zip
move avatar into clickable area of user menu
Diffstat (limited to 'core/js')
-rw-r--r--core/js/js.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/js/js.js b/core/js/js.js
index d4d2583f1e5..59d48806418 100644
--- a/core/js/js.js
+++ b/core/js/js.js
@@ -860,6 +860,7 @@ function initCore() {
// checkShowCredentials();
// $('input#user, input#password').keyup(checkShowCredentials);
+ // user menu
$('#settings #expand').keydown(function(event) {
if (event.which === 13 || event.which === 32) {
$('#expand').click()
@@ -872,7 +873,8 @@ function initCore() {
$('#settings #expanddiv').click(function(event){
event.stopPropagation();
});
- $(document).click(function(){//hide the settings menu when clicking outside it
+ //hide the user menu when clicking outside it
+ $(document).click(function(){
$('#settings #expanddiv').slideUp(200);
});