From 30c3a783d94aaa312909bc55778ca5c4a1e29e28 Mon Sep 17 00:00:00 2001 From: Thomas Tanghus Date: Thu, 2 Aug 2012 05:01:54 +0200 Subject: Remove onunload handler when delete is cancelled. --- apps/contacts/js/contacts.js | 1 + 1 file changed, 1 insertion(+) (limited to 'apps/contacts') diff --git a/apps/contacts/js/contacts.js b/apps/contacts/js/contacts.js index d84ce0a5bd6..01301e0d533 100644 --- a/apps/contacts/js/contacts.js +++ b/apps/contacts/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; } }); }, -- cgit v1.2.3