pad: Move UI setup from `handshake()` to `init()`
parent
bd44a87388
commit
f6c5ce606e
|
@ -366,12 +366,6 @@ const handshake = () => {
|
||||||
pad.collabClient.handleMessageFromServer(obj);
|
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 = {
|
const pad = {
|
||||||
|
@ -401,6 +395,9 @@ const pad = {
|
||||||
|
|
||||||
$(document).ready(() => {
|
$(document).ready(() => {
|
||||||
if (window.customStart != null) window.customStart();
|
if (window.customStart != null) window.customStart();
|
||||||
|
$('#colorpicker').farbtastic({callback: '#mycolorpickerpreview', width: 220});
|
||||||
|
$('#readonlyinput').on('click', () => { padeditbar.setEmbedLinks(); });
|
||||||
|
|
||||||
handshake();
|
handshake();
|
||||||
|
|
||||||
// To use etherpad you have to allow cookies.
|
// To use etherpad you have to allow cookies.
|
||||||
|
|
Loading…
Reference in New Issue