// 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:
1 parent
37a2bc6ebf
commit
d9de1869da
2 files changed
+9
-7
No files matched your search
@@ -553,7 +553,10 @@
|
|||||||
|
|
||||||
if(res.found)
|
if(res.found)
|
||||||
{
|
{
|
||||||
|
if (!customization_errors)
|
||||||
$('#products_err').hide();
|
$('#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>';
|
||||||
|
|||||||
+6
-7
@@ -33,8 +33,12 @@
|
|||||||
</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;
|
||||||
|
{else}
|
||||||
|
parent.customization_errors = false;
|
||||||
|
parent.$('#products_err', window.parent.document).hide();
|
||||||
|
{/if}
|
||||||
var id_selected_product = parent.$('#id_product option:selected').val();
|
var id_selected_product = parent.$('#id_product option:selected').val();
|
||||||
if (parent.searchProducts())
|
if (parent.searchProducts())
|
||||||
{
|
{
|
||||||
@@ -42,11 +46,6 @@
|
|||||||
parent.$('#id_product option[value="'+id_selected_product+'"]').attr('selected', true);
|
parent.$('#id_product option[value="'+id_selected_product+'"]').attr('selected', true);
|
||||||
parent.$('#id_product').change();
|
parent.$('#id_product').change();
|
||||||
}
|
}
|
||||||
|
|
||||||
{else}
|
|
||||||
parent.$('#products_err', window.parent.document).hide();
|
|
||||||
customization_errors = false;
|
|
||||||
{/if}
|
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
Reference in new issue
Block a user