aboutsummaryrefslogtreecommitdiffstats
path: root/core/js/js.js
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <hey@jancborchardt.net>2015-03-26 10:55:04 +0100
committerJan-Christoph Borchardt <hey@jancborchardt.net>2015-03-26 11:12:02 +0100
commit07335c844a4ad6876ed4e713702ee7afffa875d5 (patch)
tree5b741674308998a0d4059dc9cfe296072b09ab16 /core/js/js.js
parentcd88ddddaf8393685cd3c5456b97746cd89363c3 (diff)
downloadnextcloud-server-07335c844a4ad6876ed4e713702ee7afffa875d5.tar.gz
nextcloud-server-07335c844a4ad6876ed4e713702ee7afffa875d5.zip
fix log in issue, fix arrow position, make dropdown work in Firefox
Diffstat (limited to 'core/js/js.js')
-rw-r--r--core/js/js.js7
1 files changed, 4 insertions, 3 deletions
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('<style>#navigation:after { left: '+ caretPosition +'px; }</style>');
+ }
// all the tipsy stuff needs to be here (in reverse order) to work
$('.displayName .action').tipsy({gravity:'se', fade:true, live:true});