|
|
@ -33,6 +33,7 @@ define([
|
|
|
|
'/bower_components/nthen/index.js',
|
|
|
|
'/bower_components/nthen/index.js',
|
|
|
|
'/common/sframe-common.js',
|
|
|
|
'/common/sframe-common.js',
|
|
|
|
'/api/config',
|
|
|
|
'/api/config',
|
|
|
|
|
|
|
|
'/common/common-realtime.js',
|
|
|
|
|
|
|
|
|
|
|
|
'/bower_components/file-saver/FileSaver.min.js',
|
|
|
|
'/bower_components/file-saver/FileSaver.min.js',
|
|
|
|
'/bower_components/diff-dom/diffDOM.js',
|
|
|
|
'/bower_components/diff-dom/diffDOM.js',
|
|
|
@ -41,8 +42,24 @@ define([
|
|
|
|
'css!/bower_components/components-font-awesome/css/font-awesome.min.css',
|
|
|
|
'css!/bower_components/components-font-awesome/css/font-awesome.min.css',
|
|
|
|
'less!/customize/src/less/cryptpad.less',
|
|
|
|
'less!/customize/src/less/cryptpad.less',
|
|
|
|
'less!/customize/src/less/toolbar.less'
|
|
|
|
'less!/customize/src/less/toolbar.less'
|
|
|
|
], function ($, Crypto, Hyperjson,
|
|
|
|
], function (
|
|
|
|
Toolbar, Cursor, JsonOT, TypingTest, JSONSortify, TextPatcher, Cryptpad, Cryptget, Links, nThen, SFCommon, ApiConfig) {
|
|
|
|
$,
|
|
|
|
|
|
|
|
Crypto,
|
|
|
|
|
|
|
|
Hyperjson,
|
|
|
|
|
|
|
|
Toolbar,
|
|
|
|
|
|
|
|
Cursor,
|
|
|
|
|
|
|
|
JsonOT,
|
|
|
|
|
|
|
|
TypingTest,
|
|
|
|
|
|
|
|
JSONSortify,
|
|
|
|
|
|
|
|
TextPatcher,
|
|
|
|
|
|
|
|
Cryptpad,
|
|
|
|
|
|
|
|
Cryptget,
|
|
|
|
|
|
|
|
Links,
|
|
|
|
|
|
|
|
nThen,
|
|
|
|
|
|
|
|
SFCommon,
|
|
|
|
|
|
|
|
ApiConfig,
|
|
|
|
|
|
|
|
CommonRealtime)
|
|
|
|
|
|
|
|
{
|
|
|
|
var saveAs = window.saveAs;
|
|
|
|
var saveAs = window.saveAs;
|
|
|
|
var Messages = Cryptpad.Messages;
|
|
|
|
var Messages = Cryptpad.Messages;
|
|
|
|
var DiffDom = window.diffDOM;
|
|
|
|
var DiffDom = window.diffDOM;
|
|
|
@ -322,6 +339,8 @@ define([
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CommonRealtime.onInfiniteSpinner(function () { setEditable(false); });
|
|
|
|
|
|
|
|
|
|
|
|
// don't let the user edit until the pad is ready
|
|
|
|
// don't let the user edit until the pad is ready
|
|
|
|
setEditable(false);
|
|
|
|
setEditable(false);
|
|
|
|
|
|
|
|
|
|
|
|