From ee570bbca772ac12be7231ca2dd840e07bd3ce38 Mon Sep 17 00:00:00 2001 From: gRoussac Date: Tue, 12 Mar 2013 18:34:24 +0100 Subject: [PATCH] [-] FO : Avoid flashing of availability_statut --- themes/default/js/product.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/default/js/product.js b/themes/default/js/product.js index 19444cb97..9682e8c37 100644 --- a/themes/default/js/product.js +++ b/themes/default/js/product.js @@ -227,7 +227,7 @@ function updateDisplay() $('#availability_value').text(doesntExist).addClass('warning_inline'); $('#oosHook').hide(); } - if(stock_management == 1) + if(stock_management == 1 && !allowBuyWhenOutOfStock) $('#availability_statut:hidden').show(); if (typeof(selectedCombination['available_date']) != 'undefined' && selectedCombination['available_date']['date'].length != 0)