summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2015-09-30 10:44:59 +0200
committerVincent Petry <pvince81@owncloud.com>2015-09-30 10:44:59 +0200
commitd8351156005750fe6c62823ebc7e0d4c1b29e298 (patch)
treed8ee50b0de4ae21c08d2e94e93ca9da1736129c7
parent733673b39d42507441cd46e42a913f5754c790e8 (diff)
downloadnextcloud-server-d8351156005750fe6c62823ebc7e0d4c1b29e298.tar.gz
nextcloud-server-d8351156005750fe6c62823ebc7e0d4c1b29e298.zip
Keep opacity in current item in newFileMenu
Whenever the input field appears, the menu item should keep its opacity instead of reacting on hover.
-rw-r--r--apps/files/css/files.css4
-rw-r--r--apps/files/js/newfilemenu.js2
2 files changed, 6 insertions, 0 deletions
diff --git a/apps/files/css/files.css b/apps/files/css/files.css
index c0701fb18b8..675d4499c55 100644
--- a/apps/files/css/files.css
+++ b/apps/files/css/files.css
@@ -746,6 +746,10 @@ table.dragshadow td.size {
margin: 0;
}
+.newFileMenu.popovermenu a.menuitem.active {
+ opacity: 1;
+}
+
.newFileMenu.bubble:after {
left: 75px;
right: auto;
diff --git a/apps/files/js/newfilemenu.js b/apps/files/js/newfilemenu.js
index 4c021e6b873..b07999821d5 100644
--- a/apps/files/js/newfilemenu.js
+++ b/apps/files/js/newfilemenu.js
@@ -84,6 +84,8 @@
OC.hideMenus();
} else {
event.preventDefault();
+ this.$el.find('.menuitem.active').removeClass('active');
+ $target.addClass('active');
this._promptFileName($target);
}
},