From f480ea3c6f6a8fc38657c3244b02909082a95edb Mon Sep 17 00:00:00 2001 From: tDidierjean Date: Mon, 21 May 2012 16:25:22 +0000 Subject: [PATCH] // product page js fix --- js/attributesBack.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/js/attributesBack.js b/js/attributesBack.js index 7499856ec..c304eebd0 100644 --- a/js/attributesBack.js +++ b/js/attributesBack.js @@ -44,9 +44,11 @@ function populate_attrs() var list = attrs[number]; attr_name.options.length = 0; - - for(i = 0; i < list.length; i += 2) - attr_name.options[i / 2] = new Option(list[i + 1], list[i]); + if (typeof list !== 'undefined') + { + for(i = 0; i < list.length; i += 2) + attr_name.options[i / 2] = new Option(list[i + 1], list[i]); + } } function check_impact()