diff options
Diffstat (limited to 'extensions/REMO/web/js')
-rw-r--r-- | extensions/REMO/web/js/swag.js | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/extensions/REMO/web/js/swag.js b/extensions/REMO/web/js/swag.js index 47886b2a9..3b69bbab8 100644 --- a/extensions/REMO/web/js/swag.js +++ b/extensions/REMO/web/js/swag.js @@ -19,42 +19,42 @@ function evalToNumberString(numberString) { function getTotal(item_array) { var total = 0; for(var i in item_array) { - total += evalToNumber(document.getElementById(item_array[i]).value); + total += evalToNumber(document.getElementById(item_array[i]).value); } return total; } function calculateTotalSwag() { document.getElementById('Totalswag').value = - getTotal( new Array('Lanyards', - 'Stickers', - 'Bracelets', - 'Tattoos', - 'Buttons', - 'Posters')); + getTotal( new Array('Lanyards', + 'Stickers', + 'Bracelets', + 'Tattoos', + 'Buttons', + 'Posters')); } function calculateTotalMensShirts() { document.getElementById('mens_total').value = - getTotal( new Array('mens_s', - 'mens_m', - 'mens_l', - 'mens_xl', - 'mens_xxl', - 'mens_xxxl')); + getTotal( new Array('mens_s', + 'mens_m', + 'mens_l', + 'mens_xl', + 'mens_xxl', + 'mens_xxxl')); } function calculateTotalWomensShirts() { document.getElementById('womens_total').value = - getTotal( new Array('womens_s', - 'womens_m', - 'womens_l', - 'womens_xl', - 'womens_xxl', - 'womens_xxxl')); + getTotal( new Array('womens_s', + 'womens_m', + 'womens_l', + 'womens_xl', + 'womens_xxl', + 'womens_xxxl')); } |