Fix race condition #2

pull/1/head
yflory 8 years ago
parent 1540ae3f6f
commit c17f28e5fe

@ -22,6 +22,7 @@ define([
Cryptpad: Cryptpad, Cryptpad: Cryptpad,
}; };
$(function () {
Cryptpad.styleAlerts(); Cryptpad.styleAlerts();
Cryptpad.addLoadingScreen(); Cryptpad.addLoadingScreen();
@ -30,7 +31,6 @@ define([
return JSONSortify(obj); return JSONSortify(obj);
}; };
$(function () {
var toolbar; var toolbar;
var secret = Cryptpad.getSecrets(); var secret = Cryptpad.getSecrets();

@ -21,6 +21,9 @@ define([
Visible, Notify) { Visible, Notify) {
var $ = window.jQuery; var $ = window.jQuery;
var saveAs = window.saveAs; var saveAs = window.saveAs;
$(function () {
var ifrw = $('#pad-iframe')[0].contentWindow; var ifrw = $('#pad-iframe')[0].contentWindow;
var Ckeditor; // to be initialized later... var Ckeditor; // to be initialized later...
var DiffDom = window.diffDOM; var DiffDom = window.diffDOM;
@ -814,4 +817,6 @@ define([
}; };
$(first); $(first);
});
}); });

@ -15,6 +15,8 @@ define([
], function (Config, Messages, TextPatcher, Listmap, Crypto, Cryptpad, Hyperjson, Renderer, Toolbar, Visible, Notify) { ], function (Config, Messages, TextPatcher, Listmap, Crypto, Cryptpad, Hyperjson, Renderer, Toolbar, Visible, Notify) {
var $ = window.jQuery; var $ = window.jQuery;
$(function () {
var unlockHTML = '<i class="fa fa-unlock" aria-hidden="true"></i>'; var unlockHTML = '<i class="fa fa-unlock" aria-hidden="true"></i>';
var lockHTML = '<i class="fa fa-lock" aria-hidden="true"></i>'; var lockHTML = '<i class="fa fa-lock" aria-hidden="true"></i>';
var HIDE_INTRODUCTION_TEXT = "hide_poll_text"; var HIDE_INTRODUCTION_TEXT = "hide_poll_text";
@ -786,5 +788,7 @@ define([
onConnectError(); onConnectError();
} }
}); });
});
}); });

@ -28,9 +28,7 @@ define([
var SLIDE_BACKCOLOR_ID = "cryptpad-backcolor"; var SLIDE_BACKCOLOR_ID = "cryptpad-backcolor";
var SLIDE_COLOR_ID = "cryptpad-color"; var SLIDE_COLOR_ID = "cryptpad-color";
Cryptpad.styleAlerts();
Cryptpad.addLoadingScreen();
var stringify = function (obj) { var stringify = function (obj) {
return JSONSortify(obj); return JSONSortify(obj);
@ -45,6 +43,9 @@ define([
}; };
$(function () { $(function () {
Cryptpad.styleAlerts();
Cryptpad.addLoadingScreen();
var ifrw = module.ifrw = $('#pad-iframe')[0].contentWindow; var ifrw = module.ifrw = $('#pad-iframe')[0].contentWindow;
var toolbar; var toolbar;

Loading…
Cancel
Save