// 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:
@@ -60,13 +60,13 @@ function process_install(step)
|
|||||||
// An error occured during this step
|
// An error occured during this step
|
||||||
else
|
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
|
// An error HTTP (page not found, json not valid, etc.) occured during this step
|
||||||
error: function()
|
error: function()
|
||||||
{
|
{
|
||||||
install_error(step.key);
|
install_error(step);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -75,12 +75,11 @@ function install_error(step, errors)
|
|||||||
{
|
{
|
||||||
current_step = 0;
|
current_step = 0;
|
||||||
is_installing = false;
|
is_installing = false;
|
||||||
|
|
||||||
$('#process_step_'+step.key).show().addClass('fail');
|
$('#process_step_'+step.key).show().addClass('fail');
|
||||||
$.each(process_steps, function(k, v)
|
$('#progress_bar .total .progress').stop().css('width', '0px');
|
||||||
{
|
$('#progress_bar .installing').hide();
|
||||||
$('#progress_bar_'+v.key).removeClass('complete');
|
|
||||||
});
|
|
||||||
|
|
||||||
if (errors)
|
if (errors)
|
||||||
{
|
{
|
||||||
var list_errors = errors;
|
var list_errors = errors;
|
||||||
|
|||||||
Reference in New Issue
Block a user