Verified Commit 5a6f4a48 authored by Luc Didry's avatar Luc Didry
Browse files

Adapt for Etherpad 1.8.7

parent bb7023eb
......@@ -164,8 +164,9 @@ function delete_old_pads() {
}
// Add CSS
exports.eejsBlock_styles = function (hook, context) {
exports.eejsBlock_styles = function (hook, context, cb) {
context.content = context.content + '<link rel="stylesheet" type="text/css" href="../static/plugins/ep_delete_after_delay/static/css/reconnect.css"></link>';
return cb();
}
exports.handleMessage = function(hook_name, context, cb) {
......@@ -273,9 +274,9 @@ exports.registerRoute = function (hook_name, args, cb) {
} else {
res.send('{"ttl": null, "msg": "New or empty pad"}');
}
cb && cb();
});
});
cb && cb();
}
function wrapPromise (p, cb) {
......
......@@ -5,6 +5,5 @@
"ep_delete_after_delay.days": "Dieses Pad wird gelöscht, wenn es in ca. XXXX Tagen nicht bearbeitet wird.",
"ep_delete_after_delay.hours": "Dieses Pad wird gelöscht, wenn es in ca. XXXX Stunden nicht bearbeitet wird.",
"ep_delete_after_delay.minutes": "Dieses Pad wird gelöscht, wenn es in ca. XXXX Minuten nicht bearbeitet wird.",
"ep_delete_after_delay.suggest": "Um die Arbeit zu speichern, muss das Pad bearbeitet oder exportiert werden.",
"ep_delete_after_delay.close_notification": "Benachrichtigung schließen"
"ep_delete_after_delay.suggest": "Um die Arbeit zu speichern, muss das Pad bearbeitet oder exportiert werden."
}
......@@ -5,6 +5,5 @@
"ep_delete_after_delay.days": "Your pad will be deleted if it is not edited in about XXXX days.",
"ep_delete_after_delay.hours": "Your pad will be deleted if it is not edited in about XXXX hours.",
"ep_delete_after_delay.minutes": "Your pad will be deleted if it is not edited in about XXXX minutes.",
"ep_delete_after_delay.suggest": "Please edit or export your pad if you need to save your work.",
"ep_delete_after_delay.close_notification": "Close notification"
"ep_delete_after_delay.suggest": "Please edit or export your pad if you need to save your work."
}
......@@ -5,6 +5,5 @@
"ep_delete_after_delay.days": "Sans nouvelle modification, votre pad sera supprimé dans approximativement XXXX jours.",
"ep_delete_after_delay.hours": "Sans nouvelle modification, votre pad sera supprimé dans approximativement XXXX heures.",
"ep_delete_after_delay.minutes": "Sans nouvelle modification, votre pad sera supprimé dans approximativement XXXX minutes.",
"ep_delete_after_delay.suggest": "Merci de modifier votre pad ou de l'exporter pour sauvegarder votre travail.",
"ep_delete_after_delay.close_notification": "Fermer la notification"
"ep_delete_after_delay.suggest": "Merci de modifier votre pad ou de l'exporter pour sauvegarder votre travail."
}
......@@ -31,7 +31,7 @@ function get_ttl(callback) {
$.gritter.add({
class_name: 'ttl',
title: window._('ep_delete_after_delay.close'),
text: text+'<br>'+window._('ep_delete_after_delay.suggest')+'<br><button id="close_expiration_notif">'+window._('ep_delete_after_delay.close_notification')+'</button>',
text: text+' '+window._('ep_delete_after_delay.suggest'),
sticky: true,
position: 'bottom'
});
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment