[-] BO : fix bug #PSFV-700 - On IE8, the login.js' displayErrors() method fails

This commit is contained in:
tDidierjean
2012-03-22 16:12:33 +00:00
parent 82e7673f8a
commit 9a2a2db296
+2 -2
View File
@@ -89,8 +89,8 @@ function doAjaxForgot() {
}
function displayErrors(errors) {
str_errors = '<h3>' + (errors.length > 1 ? there_are : there_is) + ' ' + errors.length + ' ' + (errors.length > 1 ? label_errors : label_error) + '</h3><ol>';
for (error in errors) //IE6 bug fix
if (error != 'indexOf') str_errors += '<li>' + errors[error] + '</li>';
for (var error in errors) //IE6 bug fix
if (error != 'indexOf') str_errors += '<li>' + errors[error] + '</li>';
$('#ajax-loader').fadeOut('slow');
$('#error').html(str_errors + '</ol>');
$('#error').fadeIn();