summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Tanghus <thomas@tanghus.net>2012-08-02 05:01:54 +0200
committerThomas Tanghus <thomas@tanghus.net>2012-08-02 05:01:54 +0200
commit30c3a783d94aaa312909bc55778ca5c4a1e29e28 (patch)
treee5f206a139946c0f70c2557049c704d26c258e5b
parent20f8971222200646cda29c4a2f3983bfdbaeac09 (diff)
downloadnextcloud-server-30c3a783d94aaa312909bc55778ca5c4a1e29e28.tar.gz
nextcloud-server-30c3a783d94aaa312909bc55778ca5c4a1e29e28.zip
Remove onunload handler when delete is cancelled.
-rw-r--r--apps/contacts/js/contacts.js1
1 files changed, 1 insertions, 0 deletions
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;
}
});
},