-
Notifications
You must be signed in to change notification settings - Fork 225
Open
Description
Example: I load the page, and get a notification on "/page1" but I barely see it since I get on page "/page2" shortly after.
Usecase: on my website, I have pushed (comet) events that the user should not miss...
Workflow:
- On "/page1": A notify instance is created: it stores a object consisting of its properties and its creation timestamp.
- On "/page2": when document is ready, a method retrieves all stored objects and init them.
Before beeing reinitialised, the fadeOut.delay is adjusted :
fadeOut.delay - (now_timestamp - creation_timestamp) - When the notification is shown, localStorage is purged.
This would result in a new plugin option (boolean) "persistence" and a new public method $.notify.resume();
I'm thinking of adding this feature as an addon plugin or not, any comments ?
Metadata
Metadata
Assignees
Labels
No labels