From f013fdbc2d6e77da8f6602918d06ed7661dee9eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Gaillard?= Date: Thu, 7 Feb 2013 16:40:19 +0100 Subject: [PATCH] // Disallow click to install steps during process --- install-dev/theme/js/process.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/install-dev/theme/js/process.js b/install-dev/theme/js/process.js index 2a92f07ed..ffdf34ff2 100644 --- a/install-dev/theme/js/process.js +++ b/install-dev/theme/js/process.js @@ -19,7 +19,10 @@ function start_install() $('#progress_bar .installing').show(); $('.stepList li:last-child').removeClass('ok').removeClass('ko'); process_pixel = parseInt($('#progress_bar .total').css('width')) / process_steps.length; - + $('#tabs li a').each(function() { + this.rel=$(this).attr('href'); + this.href='#'; + }); process_install(); } @@ -165,6 +168,10 @@ function install_error(step, errors) } if (typeof psuser_assistance != 'undefined') psuser_assistance.setStep('install_process_error'); + + $('#tabs li a').each(function() { + this.href=this.rel; + }); } function install_success() @@ -177,4 +184,8 @@ function install_success() $('.stepList li:last-child').addClass('ok'); if (typeof psuser_assistance != 'undefined') psuser_assistance.setStep('install_process_success'); + + $('#tabs li a').each(function() { + this.href=this.rel; + }); } \ No newline at end of file