auto sign out of uservoice

This commit is contained in:
Connor Turland 2014-11-14 20:54:51 -05:00
parent 4e8dabba36
commit e0c9aba857
2 changed files with 6 additions and 2 deletions

View file

@ -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();

View file

@ -147,6 +147,10 @@
<% end %>
</script>
<% if !authenticated? %>
<script src="http://feedback.uservoice.com/logout.js"></script>
<% end %>
<%= render :partial => 'layouts/googleanalytics' if Rails.env.production? %>
</body>
</html>