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

[CN] Properly define/select HTML output menu bar elements #383

Merged
merged 1 commit into from
Jul 13, 2024

Conversation

samcowger
Copy link
Collaborator

I believe CN's state HTML output intends to show only one information "block" (the information unit consisting of "Available resources", "Terms", and "Constraints" sections) when a given "snapshot" (the information window that users move forward and backward with the "first"/"prev"/"next"/"last" buttons) is in view. However, at the moment, all such blocks are displayed at once when a state file is first opened.

This PR solves this problem by correctly defining the JavaScript menu variable. Its erroneous definition, and a subsequent attempt to index it, causes initialization (via the function init) to abort early, before it can hide the rest of the information blocks.

@cp526 cp526 merged commit e8a5fd5 into rems-project:master Jul 13, 2024
1 check passed
@samcowger samcowger deleted the sc/html-menu-children branch July 15, 2024 16:36
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

Successfully merging this pull request may close these issues.

2 participants