From 292397aff7993d103a5bf0250f42a62c263ab301 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexis=20M=C3=A9taireau?= Date: Sun, 5 Aug 2018 19:09:08 +0200 Subject: [PATCH] Simplify a JS function. --- ihatemoney/static/js/ihatemoney.js | 25 +++++++------------------ ihatemoney/templates/forms.html | 2 +- 2 files changed, 8 insertions(+), 19 deletions(-) diff --git a/ihatemoney/static/js/ihatemoney.js b/ihatemoney/static/js/ihatemoney.js index 24e82b78..c240dc1a 100644 --- a/ihatemoney/static/js/ihatemoney.js +++ b/ihatemoney/static/js/ihatemoney.js @@ -1,18 +1,7 @@ - // Add scripts to select all or non of the checkboxes in the add_bill form -function selectall() - { - var els = document.getElementsByName('payed_for'); - for(var i =0;i{{ _("For whom?") }}