1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2024-11-29 11:24:11 +01:00

Remove onunload handler when delete is cancelled.

This commit is contained in:
Thomas Tanghus 2012-08-02 05:01:54 +02:00
parent 732a921411
commit 76d1507677

View File

@ -501,6 +501,7 @@ OC.Contacts={
clickhandler:function(contact) { clickhandler:function(contact) {
OC.Contacts.Contacts.insertContact({contact:contact}); OC.Contacts.Contacts.insertContact({contact:contact});
OC.Contacts.notify({message:t('contacts', 'Cancelled deletion of: "') + curlistitem.find('a').text() + '"'}); OC.Contacts.notify({message:t('contacts', 'Cancelled deletion of: "') + curlistitem.find('a').text() + '"'});
window.onbeforeunload = null;
} }
}); });
}, },