X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=webcit%2Fstatic%2Fauthmethods.js;h=f66f8bcf91cf16ed1adbe1493b142d9eb6b15080;hp=ef800dd4ea668604975fcbea93f8e8878a128054;hb=17ef074880daffc346459742eacf8fd3988d16fa;hpb=69def7a51fd280872e70b517d8c58d47f13979c5 diff --git a/webcit/static/authmethods.js b/webcit/static/authmethods.js index ef800dd4e..f66f8bcf9 100644 --- a/webcit/static/authmethods.js +++ b/webcit/static/authmethods.js @@ -61,6 +61,7 @@ function authtoggle(show_which_div) { $('authbox_google').style.display = 'none'; $('authbox_yahoo').style.display = 'none'; $('authbox_aol').style.display = 'none'; + $('authbox_success').style.display = 'none'; $(show_which_div).style.display = 'block'; } @@ -84,6 +85,7 @@ function do_auth_popout(popout_url) { function ajax_try_username_and_password() { $('login_errmsg').innerHTML = ""; + authtoggle('authbox_success'); $('ajax_username_password_form').request({ onSuccess: function(ctdlresult) { if (ctdlresult.responseText.substr(0,1) == '2') { @@ -125,6 +127,7 @@ function ajax_try_newuser() { $('ajax_newuser_form').request({ onSuccess: function(ctdlresult) { if (ctdlresult.responseText.substr(0,1) == '2') { + authtoggle('authbox_success'); window.location = 'pop'; } else {