Hide the login link if they've logged in (bug 710378)

This commit is contained in:
Gregory Koberger 2011-12-14 16:32:56 -08:00
Родитель cf60837045
Коммит f035924121
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -128,7 +128,10 @@ function loadProfileCompletionForm($root, options) {
win = options.window || window, win = options.window || window,
$form = $('form', $root), $form = $('form', $root),
handler; handler;
$('#browserid-login').hide(); // Don't let people log in twice; will cause error
// Don't let people log in twice; will cause error
$('#browserid-login, .browserid-login').hide();
$root.show(); $root.show();
$(win).trigger('resize'); // I hate this so much. I vow to someday fix this properly. $(win).trigger('resize'); // I hate this so much. I vow to someday fix this properly.
$('input[type="text"]', $root).eq(0).focus(); $('input[type="text"]', $root).eq(0).focus();