mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-12-22 21:40:08 +00:00
Adding onbeforeunload-event
This commit is contained in:
parent
c6184376c5
commit
46c063085d
@ -13,9 +13,16 @@ if (typeof TimWolla.WCF == 'undefined') TimWolla.WCF = {};
|
|||||||
(function ($, document) {
|
(function ($, document) {
|
||||||
TimWolla.WCF.Chat = {
|
TimWolla.WCF.Chat = {
|
||||||
init: function(roomID, messageID) {
|
init: function(roomID, messageID) {
|
||||||
|
this.bindEvents();
|
||||||
|
},
|
||||||
|
bindEvents: function() {
|
||||||
$('.smiley').click(function(event) {
|
$('.smiley').click(function(event) {
|
||||||
alert($(event.target).attr('alt'));
|
alert($(event.target).attr('alt'));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$(window).bind('beforeunload', function() {
|
||||||
|
return false;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
})(jQuery, document);
|
})(jQuery, document);
|
Loading…
Reference in New Issue
Block a user