mirror of
https://github.com/ether/etherpad-lite.git
synced 2026-05-05 12:16:45 +02:00
pad: Move UI setup from handshake() to init()
This commit is contained in:
parent
bd44a87388
commit
f6c5ce606e
@ -366,12 +366,6 @@ const handshake = () => {
|
||||
pad.collabClient.handleMessageFromServer(obj);
|
||||
}
|
||||
});
|
||||
// Bind the colorpicker
|
||||
$('#colorpicker').farbtastic({callback: '#mycolorpickerpreview', width: 220});
|
||||
// Bind the read only button
|
||||
$('#readonlyinput').on('click', () => {
|
||||
padeditbar.setEmbedLinks();
|
||||
});
|
||||
};
|
||||
|
||||
const pad = {
|
||||
@ -401,6 +395,9 @@ const pad = {
|
||||
|
||||
$(document).ready(() => {
|
||||
if (window.customStart != null) window.customStart();
|
||||
$('#colorpicker').farbtastic({callback: '#mycolorpickerpreview', width: 220});
|
||||
$('#readonlyinput').on('click', () => { padeditbar.setEmbedLinks(); });
|
||||
|
||||
handshake();
|
||||
|
||||
// To use etherpad you have to allow cookies.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user