Markup, styling, and JavaScript handling for feedback modal that only gets shown on Area and Explore pages if the user hasn’t already skipped or submitted it. Form is submitted, via Ajax, to a Google Form in the mySociety/TCC shared drive.
As part of this, I reused and refactored the CollapsableMailingListForm from the Area page, into a general setUpCollapsable function.
I also fixed a bug where the "shared" JavaScript in home-out-esm.js (such as the .form-check + .conditional-fields handling) wasn’t being loaded on Area or Explore pages. I guess, really, we should either rename home-out-esm.js to shared-out-esm.js, or we should break out the parts that are intended to be used on other pages, and leave home-out-esm.js for homepage-only stuff.
And since the feedback form gathers some personal information, I’ve updated the Privacy Policy to explain that.
Markup, styling, and JavaScript handling for feedback modal that only gets shown on Area and Explore pages if the user hasn’t already skipped or submitted it. Form is submitted, via Ajax, to a Google Form in the mySociety/TCC shared drive.
As part of this, I reused and refactored the
CollapsableMailingListForm
from the Area page, into a generalsetUpCollapsable
function.I also fixed a bug where the "shared" JavaScript in
home-out-esm.js
(such as the.form-check + .conditional-fields
handling) wasn’t being loaded on Area or Explore pages. I guess, really, we should either renamehome-out-esm.js
toshared-out-esm.js
, or we should break out the parts that are intended to be used on other pages, and leavehome-out-esm.js
for homepage-only stuff.And since the feedback form gathers some personal information, I’ve updated the Privacy Policy to explain that.