Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sub-options aren’t shown on homepage #159

Open
andylolz opened this issue Aug 11, 2017 · 0 comments
Open

Sub-options aren’t shown on homepage #159

andylolz opened this issue Aug 11, 2017 · 0 comments

Comments

@andylolz
Copy link
Contributor

Selecting ‘A company’ on the homepage should presumably show the ‘In particular…’ select box, like it does in the sidebar form. It looks like there’s some code to do that:

// Home
// ----
$('.has-suboption').change(function() {
if (this.value) {
if (this.name === 'coverage') {
$('select[name=subnational]').val('');
}
if (this.name === 'structure') {
$('select[name=substructure]').val('');
}
var params = '?' + $('form').serialize();
window.location.href = window.location.pathname + params;
}
});

…but it doesn’t work because the sub-selects are missing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant