|
|
@ -33,6 +33,10 @@ define([
|
|
|
|
var recentPads = Cryptpad.getRecentPads();
|
|
|
|
var recentPads = Cryptpad.getRecentPads();
|
|
|
|
recentPads.sort(Cryptpad.mostRecent);
|
|
|
|
recentPads.sort(Cryptpad.mostRecent);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var fixHTML = function (html) {
|
|
|
|
|
|
|
|
return html.replace(/</g, '<');
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
var makeRecentPadsTable = function () {
|
|
|
|
var makeRecentPadsTable = function () {
|
|
|
|
if (!recentPads.length) { return; }
|
|
|
|
if (!recentPads.length) { return; }
|
|
|
|
recentPads.some(function (pad, index) {
|
|
|
|
recentPads.some(function (pad, index) {
|
|
|
@ -71,7 +75,7 @@ define([
|
|
|
|
'class': 'remove',
|
|
|
|
'class': 'remove',
|
|
|
|
title: "forget '"+shortTitle + "'"
|
|
|
|
title: "forget '"+shortTitle + "'"
|
|
|
|
}).text('✖').click(function () {
|
|
|
|
}).text('✖').click(function () {
|
|
|
|
Cryptpad.confirm("Are you sure you'd like to forget this pad (" + shortTitle + ")?", function (yes) {
|
|
|
|
Cryptpad.confirm(fixHTML("Are you sure you'd like to forget this pad (" + shortTitle + ")?"), function (yes) {
|
|
|
|
if (!yes) { return; }
|
|
|
|
if (!yes) { return; }
|
|
|
|
forgetPad(pad.href);
|
|
|
|
forgetPad(pad.href);
|
|
|
|
$row.fadeOut(750, function () {
|
|
|
|
$row.fadeOut(750, function () {
|
|
|
|