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.Realtime.close();
|
||||||
Metamaps.Filter.close();
|
Metamaps.Filter.close();
|
||||||
$('.sidebarAccountIcon div').addClass('hide');
|
$('.sidebarAccountIcon .tooltipsUnder').addClass('hide');
|
||||||
|
|
||||||
|
|
||||||
if (!self.isOpen && !self.changing) {
|
if (!self.isOpen && !self.changing) {
|
||||||
|
@ -339,7 +339,7 @@ Metamaps.GlobalUI.Account = {
|
||||||
close: function () {
|
close: function () {
|
||||||
var self = Metamaps.GlobalUI.Account;
|
var self = Metamaps.GlobalUI.Account;
|
||||||
|
|
||||||
$('.sidebarAccountIcon div').removeClass('hide');
|
$('.sidebarAccountIcon .tooltipsUnder').removeClass('hide');
|
||||||
if (!self.changing) {
|
if (!self.changing) {
|
||||||
self.changing = true;
|
self.changing = true;
|
||||||
$('.sidebarAccountBox #user_email').blur();
|
$('.sidebarAccountBox #user_email').blur();
|
||||||
|
|
|
@ -147,6 +147,10 @@
|
||||||
<% end %>
|
<% end %>
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<% if !authenticated? %>
|
||||||
|
<script src="http://feedback.uservoice.com/logout.js"></script>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
<%= render :partial => 'layouts/googleanalytics' if Rails.env.production? %>
|
<%= render :partial => 'layouts/googleanalytics' if Rails.env.production? %>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Add table
Reference in a new issue