mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-25 09:56:15 -04:00
hooks: introduce goToRevisionEvent(), a new client-side hook
This hook gets fired both on timeslider load (as timeslider shows a new revision) and when the new revision is showed to a user.
This commit is contained in:
parent
39f271bfed
commit
6fd2bf4472
2 changed files with 15 additions and 0 deletions
|
@ -193,6 +193,16 @@ Called from: src/static/js/timeslider.js
|
|||
|
||||
There doesn't appear to be any example available of this particular hook being used, but it gets fired after the timeslider is all set up.
|
||||
|
||||
## goToRevisionEvent
|
||||
Called from: src/static/js/broadcast.js
|
||||
|
||||
Things in context:
|
||||
|
||||
1. rev - The newRevision
|
||||
|
||||
This hook gets fired both on timeslider load (as timeslider shows a new revision) and when the new revision is showed to a user.
|
||||
There doesn't appear to be any example available of this particular hook being used.
|
||||
|
||||
## userJoinOrUpdate
|
||||
Called from: src/static/js/pad_userlist.js
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue