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

Fixes Add button behavior on Safari #886

Merged
merged 1 commit into from
Oct 31, 2021
Merged

Conversation

adamwolf
Copy link
Contributor

Summary

Previously, when you clicked the Add button in Safari, the page wouldn't change.

It looked like it wasn't doing anything, as noted by @rcarmo (#658 (comment))

I didn't track it down the exact reason why. It may be that Safari didn't like the two opening <h3>s, but I was able to find a bunch of people complaining about Safari being very finicky with innerHTML and actually repainting the page, enough that I decided to try just extending the block hide/show behavior already done with the delay-warning, and it works for me now in both Chrome and Safari.

Related issues

#658, kinda.

Changes these areas

  • Bugfixes
  • Feature behavior
  • Command line interface
  • Configuration options
  • Internal architecture
  • Snapshot data layout on disk

Previously, when you clicked the Add button, the page wouldn't change.

It looked like it wasn't doing anything, as noted by @rcarmo
(ArchiveBox#658 (comment))

I didn't track it down the exact reason why. It may be that Safari
didn't like the two opening <h3>s, but I was able to find a bunch of
people complaining about Safari being very finicky with innerHTML
and actually repainting the page, enough that I decided to try just
extending the block hide/show behavior already done with the
delay-warning, and it works for me now in both Chrome and Safari.

For ArchiveBox#658.
@pirate
Copy link
Member

pirate commented Oct 31, 2021

Awesome, thanks!

@pirate pirate merged commit f809e3b into ArchiveBox:dev Oct 31, 2021
@adamwolf
Copy link
Contributor Author

adamwolf commented Oct 31, 2021 via email

@pirate
Copy link
Member

pirate commented Nov 1, 2021

done! @adamwolf

@pirate pirate added size: easy type: bug report touches: js Pull requests that update Javascript code status: done Work is completed and released (or scheduled to be released in the next version) why: functionality Intended to improve ArchiveBox functionality or features labels Nov 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: easy status: done Work is completed and released (or scheduled to be released in the next version) touches: js Pull requests that update Javascript code type: bug report why: functionality Intended to improve ArchiveBox functionality or features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants