[-] BO : fix bug #PSFV-421 - bug with redirection after login

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13317 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
tDidierjean
2012-02-14 16:29:21 +00:00
parent 302ec45f56
commit 2e0d20d9f1
4 changed files with 51 additions and 36 deletions
+9 -2
View File
@@ -15,7 +15,13 @@ function displayLogin() {
$('#login').revertFlip();
return false;
}
function doAjaxLogin() {
/**
* Check user credentials
*
* @param string redirect name of the controller to redirect to after login (or null)
*/
function doAjaxLogin(redirect) {
$('#error').hide();
$('#ajax-loader').fadeIn('slow', function() {
$.ajax({
@@ -29,7 +35,8 @@ function doAjaxLogin() {
controller: "AdminLogin",
submitLogin: "1",
passwd: $('#passwd').val(),
email: $('#email').val()
email: $('#email').val(),
redirect: redirect
},
success: function(jsonData) {
if (jsonData.hasErrors) {