This commit is contained in:
Laurent Destailleur 2020-10-03 14:48:19 +02:00
parent 272b98faab
commit 5ed7b43214

View File

@ -305,21 +305,21 @@ if (!empty($extrafields))
<?php
if (! empty($usemargins) && $user->rights->margins->creer)
{
?>
?>
/* Some js test when we click on button "Add" */
jQuery(document).ready(function() {
<?php
if (! empty($conf->global->DISPLAY_MARGIN_RATES)) { ?>
$("input[name='np_marginRate']:first").blur(function(e) {
return checkFreeLine(e, "np_marginRate");
});
<?php
$("input[name='np_marginRate']:first").blur(function(e) {
return checkFreeLine(e, "np_marginRate");
});
<?php
}
if (! empty($conf->global->DISPLAY_MARK_RATES)) { ?>
$("input[name='np_markRate']:first").blur(function(e) {
return checkFreeLine(e, "np_markRate");
});
<?php
$("input[name='np_markRate']:first").blur(function(e) {
return checkFreeLine(e, "np_markRate");
});
<?php
}
?>
});
@ -369,7 +369,7 @@ if (! empty($usemargins) && $user->rights->margins->creer)
return true;
}
<?php
<?php
}
?>