From d8351156005750fe6c62823ebc7e0d4c1b29e298 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Wed, 30 Sep 2015 10:44:59 +0200 Subject: Keep opacity in current item in newFileMenu Whenever the input field appears, the menu item should keep its opacity instead of reacting on hover. --- apps/files/css/files.css | 4 ++++ apps/files/js/newfilemenu.js | 2 ++ 2 files changed, 6 insertions(+) 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); } }, -- cgit v1.2.3