Suppression scripts inutiles
This commit is contained in:
parent
c893639b9e
commit
39bd89234a
@ -107,19 +107,4 @@
|
|||||||
<p class="block error">Il n'y a aucun matériel</p>
|
<p class="block error">Il n'y a aucun matériel</p>
|
||||||
{{/if}}
|
{{/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}}
|
{{:admin_footer}}
|
||||||
|
@ -17,7 +17,6 @@
|
|||||||
|
|
||||||
{{* infos pour affichage *}}
|
{{* infos pour affichage *}}
|
||||||
{{:assign var="op_label" from="config.%s_nature.%s.label"|args:$mvt_new.direction:$mvt_new.operation}}
|
{{:assign var="op_label" from="config.%s_nature.%s.label"|args:$mvt_new.direction:$mvt_new.operation}}
|
||||||
{{:debug get=$_GET mvt_new=$mvt_new op_label=$op_label}}
|
|
||||||
{{:assign amount_init=$mvt_new.amount}}
|
{{:assign amount_init=$mvt_new.amount}}
|
||||||
{{:assign date_init=$mvt_new.date|date_short}}
|
{{:assign date_init=$mvt_new.date|date_short}}
|
||||||
{{:assign eqpmt_key=$mvt_new.equipment}}
|
{{:assign eqpmt_key=$mvt_new.equipment}}
|
||||||
|
@ -146,19 +146,4 @@
|
|||||||
<p class="block error">Il n'y a aucun matériel en stock</p>
|
<p class="block error">Il n'y a aucun matériel en stock</p>
|
||||||
{{/if}}
|
{{/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_present', 'f_quantite');
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
|
|
||||||
{{:admin_footer}}
|
{{:admin_footer}}
|
||||||
|
@ -163,19 +163,4 @@
|
|||||||
<p class="block error">Il y a 0 unité de ce matériel disponible à la date du {{$now|date_short}}</p>
|
<p class="block error">Il y a 0 unité de ce matériel disponible à la date du {{$now|date_short}}</p>
|
||||||
{{/if}}
|
{{/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_dispo', 'f_quantite');
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
|
|
||||||
{{:admin_footer}}
|
{{:admin_footer}}
|
||||||
|
Loading…
Reference in New Issue
Block a user