// 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:
1 parent
0f6acac512
commit
4d82d9dbe5
1 file changed
+5
-6
@@ -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,11 +75,10 @@ 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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user