Commit df87b54ec67e7cbb84f32652075caa3af2ba173c
1 parent
7b944575
Exists in
master
and in
29 other branches
Fix indentation
Showing
1 changed file
with
17 additions
and
17 deletions
Show diff stats
public/javascripts/application.js
... | ... | @@ -448,23 +448,23 @@ jQuery(function($) { |
448 | 448 | $.getJSON('/account/user_data', function(data) { |
449 | 449 | if (data.login) { |
450 | 450 | // logged in |
451 | - $('#user .logged-in, .login-block .logged-user-info').each(function() { | |
452 | - $(this).find('a[href]').each(function() { | |
453 | - var new_href = $(this).attr('href').replace('%{login}', data.login); | |
454 | - if (data.email_domain) { | |
455 | - new_href = new_href.replace('%{email_domain}', data.email_domain); | |
456 | - } | |
457 | - $(this).attr('href', new_href); | |
458 | - }); | |
459 | - var html = $(this).html().replace(/%{login}/g, data.login).replace('%{month}', data.since_month).replace('%{year}', data.since_year); | |
460 | - $(this).html(html).fadeIn(); | |
461 | - if (data.is_admin) { | |
462 | - $('#user .admin-link').show(); | |
463 | - } | |
464 | - if (data.email_domain) { | |
465 | - $('#user .webmail-link').show(); | |
466 | - } | |
467 | - }); | |
451 | + $('#user .logged-in, .login-block .logged-user-info').each(function() { | |
452 | + $(this).find('a[href]').each(function() { | |
453 | + var new_href = $(this).attr('href').replace('%{login}', data.login); | |
454 | + if (data.email_domain) { | |
455 | + new_href = new_href.replace('%{email_domain}', data.email_domain); | |
456 | + } | |
457 | + $(this).attr('href', new_href); | |
458 | + }); | |
459 | + var html = $(this).html().replace(/%{login}/g, data.login).replace('%{month}', data.since_month).replace('%{year}', data.since_year); | |
460 | + $(this).html(html).fadeIn(); | |
461 | + if (data.is_admin) { | |
462 | + $('#user .admin-link').show(); | |
463 | + } | |
464 | + if (data.email_domain) { | |
465 | + $('#user .webmail-link').show(); | |
466 | + } | |
467 | + }); | |
468 | 468 | } else { |
469 | 469 | // not logged in |
470 | 470 | $('#user .not-logged-in, .login-block .not-logged-user').fadeIn(); | ... | ... |