From a95bec023a379d859658c5a4fb6d0856fb8005ac Mon Sep 17 00:00:00 2001 From: Luc Didry Date: Wed, 4 May 2016 09:39:25 +0200 Subject: [PATCH] Fixes #7 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Replace ❎ by × (better supported) - Bug: if deleteAtStart is set to false, it is replaced by true - Change repository URL to framagit.org --- delete.js | 2 +- locales/en.json | 4 ++-- locales/fr.json | 4 ++-- package.json | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/delete.js b/delete.js index 0031f5e..618bcc5 100644 --- a/delete.js +++ b/delete.js @@ -19,7 +19,7 @@ var areParamsOk = (settings.ep_delete_after_delay) ? true : false, if (areParamsOk) { delay = settings.ep_delete_after_delay.delay; loopDelay = settings.ep_delete_after_delay.loopDelay || 3600; - deleteAtStart = settings.ep_delete_after_delay.deleteAtStart || true; + deleteAtStart = (settings.ep_delete_after_delay.deleteAtStart !== undefined) ? settings.ep_delete_after_delay.deleteAtStart : true; replaceText = settings.ep_delete_after_delay.text || "The content of this pad has been deleted since it was older than the configured delay."; areParamsOk = (typeof delay === 'number' && delay > 0) ? true : false; if (areParamsOk === false) { diff --git a/locales/en.json b/locales/en.json index bfd014d..3a5b9bd 100644 --- a/locales/en.json +++ b/locales/en.json @@ -1,7 +1,7 @@ { - "ep_delete_after_delay.warning": "❎ WARNING!", + "ep_delete_after_delay.warning": "× WARNING!", "ep_delete_after_delay.reload": "The pad has expired. The page will be reloaded in 5 seconds.", - "ep_delete_after_delay.close": "❎ Delay before deletion", + "ep_delete_after_delay.close": "× Delay before deletion", "ep_delete_after_delay.days": "Without edition, your pad will be deleted in approximatively XXXX days.", "ep_delete_after_delay.hours": "Without edition, your pad will be deleted in approximatively XXXX hours.", "ep_delete_after_delay.minutes": "Without edition, your pad will be deleted in approximatively XXXX minutes.", diff --git a/locales/fr.json b/locales/fr.json index e60a45a..1a81c54 100644 --- a/locales/fr.json +++ b/locales/fr.json @@ -1,7 +1,7 @@ { - "ep_delete_after_delay.warning": "❎ ATTENTION !", + "ep_delete_after_delay.warning": "× ATTENTION !", "ep_delete_after_delay.reload": "Le pad a expiré. La page sera rechargée dans 5 secondes.", - "ep_delete_after_delay.close": "❎ Délai avant suppression", + "ep_delete_after_delay.close": "× Délai avant suppression", "ep_delete_after_delay.days": "Sans édition, votre pad sera supprimé dans approximativement XXXX jours.", "ep_delete_after_delay.hours": "Sans édition, votre pad sera supprimé dans approximativement XXXX heures.", "ep_delete_after_delay.minutes": "Sans édition, votre pad sera supprimé dans approximativement XXXX minutes.", diff --git a/package.json b/package.json index 5aea2bf..f160a3d 100644 --- a/package.json +++ b/package.json @@ -14,10 +14,10 @@ }, "repository" : { "type" : "git", - "url" : "https://git.framasoft.org/luc/ep_delete_after_delay.git" + "url" : "https://framagit.org/luc/ep_delete_after_delay.git" }, "bugs": { - "url" : "https://git.framasoft.org/luc/ep_delete_after_delay/issues" + "url" : "https://framagit.org/luc/ep_delete_after_delay/issues" }, "license": "Apache-2.0" }