// fix JS errors on product page BO
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user