From 3481997826a4a544302f5f00f3cb4e6b697dce56 Mon Sep 17 00:00:00 2001 From: John McLear Date: Mon, 23 Mar 2020 15:32:06 +0000 Subject: [PATCH] hook for goToRevision event --- src/static/js/broadcast.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/static/js/broadcast.js b/src/static/js/broadcast.js index 1bd547f5275..60273f2d07d 100644 --- a/src/static/js/broadcast.js +++ b/src/static/js/broadcast.js @@ -336,6 +336,11 @@ function loadBroadcastJS(socket, sendSocketMsg, fireWhenAllScriptsAreLoaded, Bro var self = this; var path = revisionInfo.getPath(padContents.currentRevision, newRevision); debugLog('newRev: ', padContents.currentRevision, path); + + hooks.aCallAll('goToRevisionEvent', { + rev: newRevision + }); + if (path.status == 'complete') { var cs = path.changesets;