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:
parent
4f477dfa93
commit
3cdf82f7c1
@ -654,6 +654,11 @@ OC.Contacts = OC.Contacts || {
|
|||||||
bindEvents: function() {
|
bindEvents: function() {
|
||||||
var self = this;
|
var self = this;
|
||||||
|
|
||||||
|
// Should fix Opera check for delayed delete.
|
||||||
|
$(window).unload(function (){
|
||||||
|
$(window).trigger('beforeunload');
|
||||||
|
});
|
||||||
|
|
||||||
// App specific events
|
// App specific events
|
||||||
$(document).bind('status.contact.deleted', function(e, data) {
|
$(document).bind('status.contact.deleted', function(e, data) {
|
||||||
var id = parseInt(data.id);
|
var id = parseInt(data.id);
|
||||||
|
Loading…
Reference in New Issue
Block a user