|
|
@ -1,6 +1,5 @@
|
|
|
|
define([
|
|
|
|
define([
|
|
|
|
'/customize/messages.js',
|
|
|
|
'/customize/messages.js',
|
|
|
|
//'/customize/DecorateToolbar.js',
|
|
|
|
|
|
|
|
'/customize/application_config.js',
|
|
|
|
'/customize/application_config.js',
|
|
|
|
'/common/cryptpad-common.js',
|
|
|
|
'/common/cryptpad-common.js',
|
|
|
|
'/bower_components/lil-uri/uri.min.js',
|
|
|
|
'/bower_components/lil-uri/uri.min.js',
|
|
|
@ -9,6 +8,9 @@ define([
|
|
|
|
], function (Messages, Config, Cryptpad, LilUri, LS) {
|
|
|
|
], function (Messages, Config, Cryptpad, LilUri, LS) {
|
|
|
|
var $ = window.$;
|
|
|
|
var $ = window.$;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var USE_TABLE = Config.USE_HOMEPAGE_TABLE;
|
|
|
|
|
|
|
|
var USE_FS_STORE = Config.USE_FS_STORE;
|
|
|
|
|
|
|
|
|
|
|
|
var APP = window.APP = {
|
|
|
|
var APP = window.APP = {
|
|
|
|
Cryptpad: Cryptpad,
|
|
|
|
Cryptpad: Cryptpad,
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -139,20 +141,22 @@ define([
|
|
|
|
$('iframe').attr('style', '');
|
|
|
|
$('iframe').attr('style', '');
|
|
|
|
$tryit.removeAttr('data-localization');
|
|
|
|
$tryit.removeAttr('data-localization');
|
|
|
|
$tryit.text(Messages.recentPadsIframe);
|
|
|
|
$tryit.text(Messages.recentPadsIframe);
|
|
|
|
//makeRecentPadsTable(recentPads);
|
|
|
|
|
|
|
|
|
|
|
|
if (USE_TABLE) {
|
|
|
|
|
|
|
|
makeRecentPadsTable(recentPads);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*if (hasRecent) {
|
|
|
|
if (USE_TABLE && hasRecent) {
|
|
|
|
$('table').attr('style', '');
|
|
|
|
$('table').attr('style', '');
|
|
|
|
// Race condition here, this is triggered before the localization in HTML
|
|
|
|
// Race condition here, this is triggered before the localization in HTML
|
|
|
|
// so we have to remove the data-localization attr
|
|
|
|
// so we have to remove the data-localization attr
|
|
|
|
$tryit.removeAttr('data-localization');
|
|
|
|
$tryit.removeAttr('data-localization');
|
|
|
|
$tryit.text(Messages.recentPads);
|
|
|
|
$tryit.text(Messages.recentPads);
|
|
|
|
}*/
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
displayCreateButtons();
|
|
|
|
displayCreateButtons();
|
|
|
|
Cryptpad.ready(function () {
|
|
|
|
Cryptpad.ready(function () {
|
|
|
|
console.log("ready");
|
|
|
|
console.log("ready");
|
|
|
@ -161,7 +165,6 @@ define([
|
|
|
|
$tbody = $table.find('tbody');
|
|
|
|
$tbody = $table.find('tbody');
|
|
|
|
$tryit = $('#tryit');
|
|
|
|
$tryit = $('#tryit');
|
|
|
|
|
|
|
|
|
|
|
|
DecorateToolbar.main($('#bottom-bar'));
|
|
|
|
|
|
|
|
Cryptpad.styleAlerts();
|
|
|
|
Cryptpad.styleAlerts();
|
|
|
|
|
|
|
|
|
|
|
|
refreshTable();
|
|
|
|
refreshTable();
|
|
|
|