diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-10-18 15:35:09 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-12-04 18:05:01 +0000 |
commit | 580f66bd3e92a4649e98c42a736ccdaddcd6449e (patch) | |
tree | 216439672be95313e02064063efd4d9d992444cd /web | |
parent | bfdae7620a932a5fe11ffdb94c586d8f648f2d51 (diff) |
Remove form-focus-trigger/hidden behaviour.
Diffstat (limited to 'web')
-rw-r--r-- | web/cobrands/fixmystreet/fixmystreet.js | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/web/cobrands/fixmystreet/fixmystreet.js b/web/cobrands/fixmystreet/fixmystreet.js index 15cc6b26a..e2f72be94 100644 --- a/web/cobrands/fixmystreet/fixmystreet.js +++ b/web/cobrands/fixmystreet/fixmystreet.js @@ -897,22 +897,6 @@ $.extend(fixmystreet.set_up, { } }, - form_focus_triggers: function() { - // If all of the form-focus-triggers are empty, hide form-focus-hidden. - // (If the triggers aren't empty, then chances are we're being re-shown - // the form after a validation error, so don't hide form-focus-hidden.) - // Unhide form-focus-hidden when any of the triggers are focussed. - var form_focus_data = $('.form-focus-trigger').map(function() { - return $(this).val(); - }).get().join(''); - if (!form_focus_data) { - $('.form-focus-hidden').hide(); - $('.form-focus-trigger').on('focus', function() { - $('.form-focus-hidden').fadeIn(500); - }); - } - }, - alert_page_buttons: function() { // Go directly to RSS feed if RSS button clicked on alert page // (due to not wanting around form to submit, though good thing anyway) @@ -1332,7 +1316,6 @@ fixmystreet.display = { fixmystreet.set_up.email_login_form(); fixmystreet.set_up.fancybox_images(); fixmystreet.set_up.dropzone($sideReport); - fixmystreet.set_up.form_focus_triggers(); fixmystreet.run(fixmystreet.set_up.moderation); fixmystreet.run(fixmystreet.set_up.response_templates); |