# HG changeset patch # User Brian Neal # Date 1329183269 21600 # Node ID e5d3552d4ad0ca6924867020a1160bf0097cbe14 # Parent 93f049a241ff30cfab90c7a795bfe9f488b648cd The ajax login didn't work from the register page. I think this is because there are two input boxes with the same ID in this situation. Renamed the ajax login form's ID's to make them unique. diff -r 93f049a241ff -r e5d3552d4ad0 gpp/accounts/static/js/ajax_login.js --- a/gpp/accounts/static/js/ajax_login.js Thu Feb 09 19:38:03 2012 -0600 +++ b/gpp/accounts/static/js/ajax_login.js Mon Feb 13 19:34:29 2012 -0600 @@ -1,7 +1,7 @@ $(function() { var loginError = $('#login-error'); - var userBox = $('#id_username'); - var passBox = $('#id_password'); + var userBox = $('#ajax-login-username'); + var passBox = $('#ajax-login-password'); var loginDialog = $('#login-dialog').dialog({ autoOpen: false, height: 375, diff -r 93f049a241ff -r e5d3552d4ad0 gpp/templates/accounts/ajax_login_form.html --- a/gpp/templates/accounts/ajax_login_form.html Thu Feb 09 19:38:03 2012 -0600 +++ b/gpp/templates/accounts/ajax_login_form.html Mon Feb 13 19:34:29 2012 -0600 @@ -3,10 +3,10 @@

- -
- - + +
+ +