Suppression scripts inutiles
This commit is contained in:
parent
c893639b9e
commit
39bd89234a
4 changed files with 0 additions and 46 deletions
|
|
@ -107,19 +107,4 @@
|
|||
<p class="block error">Il n'y a aucun matériel</p>
|
||||
{{/if}}
|
||||
|
||||
<script type="text/javascript">
|
||||
// fixer la valeur maximale du champ de saisie de la quantité
|
||||
function fixerValeurMax(idSelect, idNumber) {
|
||||
let max = document.getElementById(idSelect).value;
|
||||
let val = parseInt(document.getElementById(idNumber).value);
|
||||
document.getElementById(idNumber).setAttribute("max", max);
|
||||
if (val > max) {
|
||||
document.getElementById(idNumber).value = max;
|
||||
}
|
||||
}
|
||||
addEventListener("DOMContentLoaded", (event) => {
|
||||
fixerValeurMax('f_sorti', 'f_quantite');
|
||||
});
|
||||
</script>
|
||||
|
||||
{{:admin_footer}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue