Merge pull request #3900 from GPCsolutions/dolibarr-3864

Fix #3864 Really fixed invalid jQuery code
This commit is contained in:
Laurent Destailleur 2015-11-05 21:47:40 +01:00
commit fdf9617e42

View File

@ -446,7 +446,7 @@ jQuery(document).ready(function() {
<?php if (! empty($usemargins) && $user->rights->margins->creer) { ?>
/* Code for margin */
$("#fournprice_predef option").each.remove();
$("#fournprice_predef").find("option").remove();
$("#fournprice_predef").hide();
$("#buying_price").val("").show();
$.post('<?php echo DOL_URL_ROOT; ?>/fourn/ajax/getSupplierPrices.php', { 'idprod': $(this).val() }, function(data) {