diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2015-02-20 11:58:28 +0000 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2015-02-20 12:03:49 +0000 |
commit | 5e4307dece6a8031f339f3956e35110a47eba894 (patch) | |
tree | ccb63ac76657d1d7213cf84c48106dee0b00a3cb /web | |
parent | 834d18012ab64e340d06f539fee17d34e0cf7675 (diff) |
[East Sussex] Reorder so function defined pre use.
Diffstat (limited to 'web')
-rw-r--r-- | web/cobrands/eastsussex/report-form.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/web/cobrands/eastsussex/report-form.js b/web/cobrands/eastsussex/report-form.js index 4e01572f7..e61d48b9a 100644 --- a/web/cobrands/eastsussex/report-form.js +++ b/web/cobrands/eastsussex/report-form.js @@ -1,11 +1,3 @@ -$(function () { - setup_anonymous_checkbox( $('#form_sign_in_no') ); - setup_anonymous_checkbox( $('#form-box--logged-in-name') ); - setup_anonymous_checkbox( $('#update_form') ); - - $('.public-warning').attr({ 'title': 'This information will be be visible to the public on the report' }); -}); - function setup_anonymous_checkbox (div) { var label = div.find( '.name-warning' ); checkbox = div.find('input[type=checkbox]'); @@ -20,3 +12,11 @@ function setup_anonymous_checkbox (div) { } }); } + +$(function () { + setup_anonymous_checkbox( $('#form_sign_in_no') ); + setup_anonymous_checkbox( $('#form-box--logged-in-name') ); + setup_anonymous_checkbox( $('#update_form') ); + + $('.public-warning').attr({ 'title': 'This information will be be visible to the public on the report' }); +}); |