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

Contacts: Let unload trigger beforeunload.

This commit is contained in:
Thomas Tanghus 2012-11-05 20:45:08 +01:00
parent 4f477dfa93
commit 3cdf82f7c1

View File

@ -654,6 +654,11 @@ OC.Contacts = OC.Contacts || {
bindEvents: function() {
var self = this;
// Should fix Opera check for delayed delete.
$(window).unload(function (){
$(window).trigger('beforeunload');
});
// App specific events
$(document).bind('status.contact.deleted', function(e, data) {
var id = parseInt(data.id);