auto sign out of uservoice
This commit is contained in:
parent
4e8dabba36
commit
e0c9aba857
2 changed files with 6 additions and 2 deletions
|
@ -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();
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue