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

Possibility to store current state of a gallery as URL #2

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

rcaspart
Copy link
Contributor

@rcaspart rcaspart commented May 14, 2016

This adds a link to the Gallery (right of the search field) which allows to generate a URL containing the information needed to restore the current state of the gallery.
Currently it saves the information for

  • the search regex
  • the pressed buttons
    Pressing this button pops up a message with the corresponding link already selected allowing for easy copying of the link.

When opening Galleries we now also check for the arguments provided as stated above. Hence the following informations are restored upon loading a link

  • the state the buttons where in (including correctly highlighting them)
  • the selection of plots as given by the state of the buttons and the regex

In addition an attempt is made to not spam the history of the user when using multiple different settings, but only have the base-url in the history (not fully checked yet)

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