// fix JS errors on product page BO

This commit is contained in:
tDidierjean
2012-01-16 17:49:20 +00:00
parent 04801c38e5
commit 21f3ca30d1
4 changed files with 20 additions and 17 deletions
@@ -76,6 +76,7 @@
</div>
<script type="text/javascript">
var toload = new Array();
var empty_pack_msg = '{l s='Pack is empty. You need to add at least one product to the pack before you can save it.'}';
$('#product-tab-content-wait').show();
$(document).ready(function()
@@ -161,19 +161,6 @@
return ids;
}
function handleSaveForPack()
{
// if no item left in the pack, disable save buttons
$("#disablePackMessage").remove();
if ($("#inputPackItems").val() == "")
{
disableSave();
$(".leadin").append('<div id="disablePackMessage" class="warn">{l s='Pack is empty. You need to add at least one product to the pack before you can save it.'}</div>');
}
else
enableSave();
}
</script>
<h4>{l s='Pack'}</h4>