From 40fddb083bce330ef4fa5417ea36b137b7d6a6fb Mon Sep 17 00:00:00 2001 From: Todd Dembrey <todd.dembrey@torchbox.com> Date: Wed, 31 Jan 2018 11:33:51 +0000 Subject: [PATCH] Tidy up code and remove dead code --- opentech/apply/funds/static/address_form.js | 5 ----- opentech/apply/funds/widgets.py | 2 -- 2 files changed, 7 deletions(-) diff --git a/opentech/apply/funds/static/address_form.js b/opentech/apply/funds/static/address_form.js index 5ca770753..4005adafd 100644 --- a/opentech/apply/funds/static/address_form.js +++ b/opentech/apply/funds/static/address_form.js @@ -1,10 +1,5 @@ (function ($) { - // On document ready, instantiate the plugin. $(document).ready(function formReady() { - // Initialize jquery.validate (optional). - // $('#address-example').validate({}); - - // Initialize jquery.addressfield. $('.form div.address').addressfield({ json: '/static/addressfield.min.json', fields: { diff --git a/opentech/apply/funds/widgets.py b/opentech/apply/funds/widgets.py index 4a08d10c8..a9cda6fc7 100644 --- a/opentech/apply/funds/widgets.py +++ b/opentech/apply/funds/widgets.py @@ -42,7 +42,6 @@ class NestedMultiWidget(KeepOwnAttrsWidget, forms.MultiWidget): } - class LocalityWidget(NestedMultiWidget): components = { 'localityname': KeepAttrsTextInput, @@ -51,7 +50,6 @@ class LocalityWidget(NestedMultiWidget): } - class AddressWidget(NestedMultiWidget): components = { 'country': CountrySelectWithChoices, -- GitLab