// Fix PSCFV-3894
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17272 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -553,7 +553,10 @@
|
|||||||
|
|
||||||
if(res.found)
|
if(res.found)
|
||||||
{
|
{
|
||||||
$('#products_err').hide();
|
if (!customization_errors)
|
||||||
|
$('#products_err').hide();
|
||||||
|
else
|
||||||
|
customization_errors = false;
|
||||||
$('#products_found').show();
|
$('#products_found').show();
|
||||||
products_found += '<label>{l s='Product:'}</label><select id="id_product" onclick="display_product_attributes();display_product_customizations();">';
|
products_found += '<label>{l s='Product:'}</label><select id="id_product" onclick="display_product_attributes();display_product_customizations();">';
|
||||||
attributes_html += '<label>{l s='Combination:'}</label>';
|
attributes_html += '<label>{l s='Combination:'}</label>';
|
||||||
|
|||||||
+10
-11
@@ -33,20 +33,19 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
{if $customization_errors|count}
|
{if $customization_errors}
|
||||||
customization_errors = true;
|
parent.customization_errors = true;
|
||||||
var id_selected_product = parent.$('#id_product option:selected').val();
|
|
||||||
if (parent.searchProducts())
|
|
||||||
{
|
|
||||||
parent.$('#products_err', window.parent.document).html('{$customization_errors}');
|
|
||||||
parent.$('#id_product option[value="'+id_selected_product+'"]').attr('selected', true);
|
|
||||||
parent.$('#id_product').change();
|
|
||||||
}
|
|
||||||
|
|
||||||
{else}
|
{else}
|
||||||
|
parent.customization_errors = false;
|
||||||
parent.$('#products_err', window.parent.document).hide();
|
parent.$('#products_err', window.parent.document).hide();
|
||||||
customization_errors = false;
|
|
||||||
{/if}
|
{/if}
|
||||||
|
var id_selected_product = parent.$('#id_product option:selected').val();
|
||||||
|
if (parent.searchProducts())
|
||||||
|
{
|
||||||
|
parent.$('#products_err', window.parent.document).html('{$customization_errors}');
|
||||||
|
parent.$('#id_product option[value="'+id_selected_product+'"]').attr('selected', true);
|
||||||
|
parent.$('#id_product').change();
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user