mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-25 01:46:14 -04:00
Add a documentReady client_hook.
This commit is contained in:
parent
c9e8f7e7af
commit
58d5203110
1 changed files with 7 additions and 0 deletions
|
@ -347,8 +347,15 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
var plugins = require('ep_etherpad-lite/static/js/pluginfw/plugins');
|
var plugins = require('ep_etherpad-lite/static/js/pluginfw/plugins');
|
||||||
|
var hooks = require('ep_etherpad-lite/static/js/pluginfw/hooks');
|
||||||
|
|
||||||
plugins.baseURL = baseURL;
|
plugins.baseURL = baseURL;
|
||||||
plugins.update(function () {
|
plugins.update(function () {
|
||||||
|
// Call documentReady hook
|
||||||
|
$(function() {
|
||||||
|
hooks.aCallAll('documentReady');
|
||||||
|
});
|
||||||
|
|
||||||
var pad = require('ep_etherpad-lite/static/js/pad');
|
var pad = require('ep_etherpad-lite/static/js/pad');
|
||||||
pad.baseURL = baseURL;
|
pad.baseURL = baseURL;
|
||||||
pad.init();
|
pad.init();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue