From: Jan-Christoph Borchardt Date: Thu, 26 Mar 2015 09:55:04 +0000 (+0100) Subject: fix log in issue, fix arrow position, make dropdown work in Firefox X-Git-Tag: v8.1.0alpha1~163^2~6 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=07335c844a4ad6876ed4e713702ee7afffa875d5;p=nextcloud-server.git fix log in issue, fix arrow position, make dropdown work in Firefox --- diff --git a/core/js/js.js b/core/js/js.js index 1ae776692fe..31ac4313eee 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -1141,9 +1141,10 @@ function initCore() { // move triangle of apps dropdown to align with app name triangle // 68 is the additional offset coming from the logo width - var caretPosition = $('.header-appname + .icon-caret').position().left + 68; - document.styleSheets[2].addRule('#navigation:after', - 'left: '+ caretPosition +'px;'); + if($('#navigation').length) { + var caretPosition = $('.header-appname + .icon-caret').offset().left - 2; + $('head').append(''); + } // all the tipsy stuff needs to be here (in reverse order) to work $('.displayName .action').tipsy({gravity:'se', fade:true, live:true});