From 4d82d9dbe58a5af95bbd827cef3d2d984edfc6fc Mon Sep 17 00:00:00 2001 From: rMalie Date: Tue, 3 Jan 2012 15:33:22 +0000 Subject: [PATCH] // 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 --- install-new/theme/js/process.js | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/install-new/theme/js/process.js b/install-new/theme/js/process.js index 56c730520..a1dd78ecb 100644 --- a/install-new/theme/js/process.js +++ b/install-new/theme/js/process.js @@ -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;