// Fix display of errors in new installer

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12076 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie
2012-01-03 15:33:22 +00:00
parent 0f6acac512
commit 4d82d9dbe5
+6 -7
View File
@@ -60,13 +60,13 @@ function process_install(step)
// An error occured during this step
else
{
install_error(step.key, json.message);
install_error(step, json.message);
}
},
// An error HTTP (page not found, json not valid, etc.) occured during this step
error: function()
{
install_error(step.key);
install_error(step);
}
});
}
@@ -75,12 +75,11 @@ function install_error(step, errors)
{
current_step = 0;
is_installing = false;
$('#process_step_'+step.key).show().addClass('fail');
$.each(process_steps, function(k, v)
{
$('#progress_bar_'+v.key).removeClass('complete');
});
$('#progress_bar .total .progress').stop().css('width', '0px');
$('#progress_bar .installing').hide();
if (errors)
{
var list_errors = errors;