From 76d15076775c983593d8c3b7a0fdfe95aae1c4a1 Mon Sep 17 00:00:00 2001 From: Thomas Tanghus Date: Thu, 2 Aug 2012 05:01:54 +0200 Subject: [PATCH] Remove onunload handler when delete is cancelled. --- js/contacts.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/contacts.js b/js/contacts.js index d84ce0a5..01301e0d 100644 --- a/js/contacts.js +++ b/js/contacts.js @@ -501,6 +501,7 @@ OC.Contacts={ clickhandler:function(contact) { OC.Contacts.Contacts.insertContact({contact:contact}); OC.Contacts.notify({message:t('contacts', 'Cancelled deletion of: "') + curlistitem.find('a').text() + '"'}); + window.onbeforeunload = null; } }); },