From 4852cab66d42101b4597bdf623718c9d71746bdb Mon Sep 17 00:00:00 2001 From: antisnatchor Date: Mon, 4 Feb 2013 12:09:46 +0000 Subject: [PATCH] Properly adjusted onClose command module to annoy the user also in latest Firefox. --- modules/persistence/confirm_close_tab/command.js | 1 + modules/persistence/confirm_close_tab/config.yaml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/persistence/confirm_close_tab/command.js b/modules/persistence/confirm_close_tab/command.js index 61c12ae79..093149ab4 100644 --- a/modules/persistence/confirm_close_tab/command.js +++ b/modules/persistence/confirm_close_tab/command.js @@ -22,6 +22,7 @@ beef.execute(function() { if (e.stopPropagation) { e.stopPropagation(); e.preventDefault(); + e.returnValue = "There is currently a request to the server pending. You will lose recent changes by navigating away."; } } diff --git a/modules/persistence/confirm_close_tab/config.yaml b/modules/persistence/confirm_close_tab/config.yaml index 8ebef1f15..154bcfb64 100644 --- a/modules/persistence/confirm_close_tab/config.yaml +++ b/modules/persistence/confirm_close_tab/config.yaml @@ -9,7 +9,7 @@ beef: enable: true category: "Persistence" name: "Confirm Close Tab" - description: "Shows a confirm dialog to the user when he tries to close a tab. If he click yes, re-display the confirm dialog. Doesn't work on Opera < 12" + description: "Shows a confirm dialog to the user when he tries to close a tab. If he click yes, re-display the confirm dialog. Doesn't work on Opera < 12. In Chrome you can't keep opening confirm dialogs." authors: ["antisnatchor"] target: user_notify: ["ALL"]