From e0c9aba857bf23bc36e1f4925a79a8bc5e0751b1 Mon Sep 17 00:00:00 2001 From: Connor Turland Date: Fri, 14 Nov 2014 20:54:51 -0500 Subject: [PATCH] auto sign out of uservoice --- app/assets/javascripts/src/Metamaps.GlobalUI.js | 4 ++-- app/views/layouts/application.html.erb | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/src/Metamaps.GlobalUI.js b/app/assets/javascripts/src/Metamaps.GlobalUI.js index 7f5ce542..3a52961d 100644 --- a/app/assets/javascripts/src/Metamaps.GlobalUI.js +++ b/app/assets/javascripts/src/Metamaps.GlobalUI.js @@ -324,7 +324,7 @@ Metamaps.GlobalUI.Account = { Metamaps.Realtime.close(); Metamaps.Filter.close(); - $('.sidebarAccountIcon div').addClass('hide'); + $('.sidebarAccountIcon .tooltipsUnder').addClass('hide'); if (!self.isOpen && !self.changing) { @@ -339,7 +339,7 @@ Metamaps.GlobalUI.Account = { close: function () { var self = Metamaps.GlobalUI.Account; - $('.sidebarAccountIcon div').removeClass('hide'); + $('.sidebarAccountIcon .tooltipsUnder').removeClass('hide'); if (!self.changing) { self.changing = true; $('.sidebarAccountBox #user_email').blur(); diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index bea00881..ec4fb149 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -147,6 +147,10 @@ <% end %> +<% if !authenticated? %> + +<% end %> + <%= render :partial => 'layouts/googleanalytics' if Rails.env.production? %>