Remove onunload handler when delete is cancelled.
This commit is contained in:
parent
20f8971222
commit
30c3a783d9
|
@ -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;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue