Remove onunload handler when delete is cancelled.

This commit is contained in:
Thomas Tanghus 2012-08-02 05:01:54 +02:00
parent 20f8971222
commit 30c3a783d9
1 changed files with 1 additions and 0 deletions

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;
} }
}); });
}, },