From 3a4282fd75e3b3317b2b08b4aa2e6ac154310e73 Mon Sep 17 00:00:00 2001 From: Alexis Metaireau Date: Fri, 7 Jul 2017 00:06:56 +0200 Subject: Absolute imports & some other improvements (#243) * Use absolute imports and rename package to ihatemoney * Add a ihatemoney command * Factorize application creation logic * Refactor the tests * Update the wsgi.py module with the new create_app() function * Fix some styling thanks to Flake8. * Automate Flake8 check in the CI. --- ihatemoney/static/js/ihatemoney.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 ihatemoney/static/js/ihatemoney.js (limited to 'ihatemoney/static/js/ihatemoney.js') diff --git a/ihatemoney/static/js/ihatemoney.js b/ihatemoney/static/js/ihatemoney.js new file mode 100644 index 0000000..24e82b7 --- /dev/null +++ b/ihatemoney/static/js/ihatemoney.js @@ -0,0 +1,18 @@ + // 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