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

Refactor toggle/fetch JS. #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Refactor toggle/fetch JS. #17

wants to merge 1 commit into from

Conversation

kimisgold
Copy link
Contributor

Manage dereferencer content visibility with css class instead of inline styles. (Addresses omeka/omeka-s#2249)

Previously, the div.uri-dereferencer-markup is visible on load, even if empty. This causes some themes to display empty containers, creating awkward extra space or empty boxes in some themes. Now the CSS sets this container to display: none by default, then applies visibility by adding the .open CSS class.

Condense fetch and toggle into single button.

A single button toggles the content and only fetches dereferencer content on the first click, reducing the amount of markup added to the page.

* Manage dereferencer content visibility with css class instead of
  inline styles. (Addresses omeka/omeka-s#2249)
* Condense fetch and toggle into single button. It toggles the content
  and only fetches on the first click.
@kimisgold kimisgold requested a review from jimsafley January 13, 2025 19:58
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.

1 participant