Fix the taildoc bug

pull/1/head
yflory 8 years ago
parent 87abfff66b
commit 1772cc93c8

@ -139,6 +139,8 @@ define([
}); });
}; };
displayCreateButtons();
Cryptpad.ready(function () { Cryptpad.ready(function () {
console.log("ready"); console.log("ready");
@ -149,7 +151,6 @@ define([
DecorateToolbar.main($('#bottom-bar')); DecorateToolbar.main($('#bottom-bar'));
Cryptpad.styleAlerts(); Cryptpad.styleAlerts();
displayCreateButtons();
refreshTable(); refreshTable();
if (Cryptpad.store && Cryptpad.store.change) { if (Cryptpad.store && Cryptpad.store.change) {
Cryptpad.store.change(function (data) { Cryptpad.store.change(function (data) {

@ -121,7 +121,6 @@ define([
el.setAttribute('class', 'non-realtime'); el.setAttribute('class', 'non-realtime');
}); });
editor.execCommand('maximize');
var documentBody = ifrw.$('iframe')[0].contentDocument.body; var documentBody = ifrw.$('iframe')[0].contentDocument.body;
var inner = window.inner = documentBody; var inner = window.inner = documentBody;
@ -629,6 +628,8 @@ define([
// this should only ever get called once, when the chain syncs // this should only ever get called once, when the chain syncs
var onReady = realtimeOptions.onReady = function (info) { var onReady = realtimeOptions.onReady = function (info) {
editor.execCommand('maximize');
module.patchText = TextPatcher.create({ module.patchText = TextPatcher.create({
realtime: info.realtime, realtime: info.realtime,
//logging: true, //logging: true,

Loading…
Cancel
Save