Commit 739f7028 by Alexis Aoun

refactor

parent a7a0adfb
......@@ -174,8 +174,8 @@ function update_distant_orders() {
});
}
function price_to_weight_confirmed_callback (foundProduct, scannedProduct) {
return function price_to_weight_confirmed() {
function price_to_weight_confirmed_callback(foundProduct, scannedProduct) {
return function() {
let newQty = null;
if (priceToWeightIsCorrect) {
......@@ -209,7 +209,7 @@ function price_to_weight_is_wrong() {
priceToWeightIsCorrect = false;
}
function setupPopUpBtnStyle (p) {
function setupPopUpBtnStyle(p) {
//On inverse en quelque sorte les boutons succes et d'annulation en mettant "Oui" sur le btn d'annulation
// et "Non" sur le bouton de reussite.
//Cela nous permet de reecrire moins de code puisque si la reponse est Oui on ne veut
......@@ -227,7 +227,7 @@ function setupPopUpBtnStyle (p) {
document.getElementsByClassName("btn--success")[0].style.display = "";
}
function resetPopUpButtons () {
function resetPopUpButtons() {
document.getElementsByClassName("btn--success")[0].style.display = "";
document.getElementsByClassName("btn--success")[0].style.backgroundColor = "";
document.querySelector('#modal_closebtn_bottom').style.backgroundColor = "";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment