[finish #29885177] redirect user after login instead of just displaying link

pull/1/head
eric 2012-05-20 00:55:41 -04:00
parent 3de07e973f
commit e61a818ad3
1 changed files with 2 additions and 1 deletions

View File

@ -21,7 +21,8 @@ $j(document).ready(function() {
next = next.replace(/[\x22\x27\x3c\x3e]/g,'');
$j.cookie('next', next, {path: '/'});
} else if(saved_next!=null){
$j('#link-to-next').html("<a href='"+saved_next+"'> Click to continue after logging in...</a>");
var do_next = $j('#link-to-next');
if (do_next.length) window.location.replace(saved_next);
}
});
</script>