howitworks is default home page if not logged in. Otherwise course

index. NOTE: didn't fix old wrong behavior of going to index if not
logged in and tried to navigate to a specific page. Will work on that
next.
This commit is contained in:
Don Mitchell
2013-02-13 09:30:54 -05:00
parent d569c559ca
commit 6f3a954d7b
3 changed files with 7 additions and 3 deletions

View File

@@ -77,7 +77,7 @@
submit_data,
function(json) {
if(json.success) {
location.href = "${reverse('index')}";
location.href = "${reverse('homepage')}";
} else if($('#login_error').length == 0) {
$('#login_form').prepend('<div id="login_error" class="message message-status error">' + json.value + '</span></div>');
$('#login_error').addClass('is-shown');