do a synchronous request for Log Out link (bug 787251)
This commit is contained in:
Родитель
2c5dfc4395
Коммит
b63f578301
|
@ -1,6 +1,7 @@
|
|||
// is the captured node exempt from fragment loading?
|
||||
function fragmentFilter(el) {
|
||||
var href = el.getAttribute('href') || el.getAttribute('action');
|
||||
var href = el.getAttribute('href') || el.getAttribute('action'),
|
||||
$el = $(el);
|
||||
return !href || href.substr(0,4) == 'http' ||
|
||||
href.substr(0,7) === 'mailto:' ||
|
||||
href.substr(0,11) === 'javascript:' ||
|
||||
|
@ -10,7 +11,7 @@ function fragmentFilter(el) {
|
|||
href.indexOf('/statistics/') !== -1 ||
|
||||
href.indexOf('?modified=') !== -1 ||
|
||||
el.getAttribute('target') === '_blank' ||
|
||||
$(el).hasClass('post');
|
||||
$el.hasClass('post') || $el.hasClass('sync');
|
||||
}
|
||||
|
||||
(function(container, nodeFilter) {
|
||||
|
|
|
@ -74,7 +74,7 @@
|
|||
{% trans user=request.amo_user.email %}
|
||||
Signed in as <b>{{ user }}</b>
|
||||
{% endtrans %}
|
||||
<a href="{{ url('users.logout') }}" class="logout">
|
||||
<a href="{{ url('users.logout') }}" class="sync logout">
|
||||
({{ _('Log Out') }})</a>
|
||||
{% else %}
|
||||
<a class="button browserid" href="#">{{ _('Log in / Register') }}</a>
|
||||
|
@ -84,7 +84,7 @@
|
|||
<p>
|
||||
{% if logged %}
|
||||
{% for link in tools_links %}
|
||||
<a href="{{ link.href }}" rel="external">{{ link.text }}</a>
|
||||
<a href="{{ link.href }}" class="sync" rel="external">{{ link.text }}</a>
|
||||
{% endfor %}
|
||||
{% if request.can_view_consumer %}
|
||||
{# TODO: Coming soon with payments. #}
|
||||
|
|
Загрузка…
Ссылка в новой задаче