Skip to content
Snippets Groups Projects
Commit 69ac75be authored by Raphaël Doursenaud's avatar Raphaël Doursenaud
Browse files

Fix #3864 Fixed invalid jQuery code

parent c06c2d04
No related branches found
No related tags found
No related merge requests found
...@@ -446,7 +446,7 @@ jQuery(document).ready(function() { ...@@ -446,7 +446,7 @@ jQuery(document).ready(function() {
<?php if (! empty($usemargins) && $user->rights->margins->creer) { ?> <?php if (! empty($usemargins) && $user->rights->margins->creer) { ?>
/* Code for margin */ /* Code for margin */
$("#fournprice_predef options").remove(); $("#fournprice_predef option").each.remove();
$("#fournprice_predef").hide(); $("#fournprice_predef").hide();
$("#buying_price").val("").show(); $("#buying_price").val("").show();
$.post('<?php echo DOL_URL_ROOT; ?>/fourn/ajax/getSupplierPrices.php', { 'idprod': $(this).val() }, function(data) { $.post('<?php echo DOL_URL_ROOT; ?>/fourn/ajax/getSupplierPrices.php', { 'idprod': $(this).val() }, function(data) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment