From: Sarven Capadisli Date: Wed, 18 Nov 2009 12:46:36 +0000 (+0000) Subject: Setting windowhasfocus to true by default X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=007418fdab8f9f0c718a18568bfbf4377bb85364;p=quix0rs-gnu-social.git Setting windowhasfocus to true by default --- diff --git a/plugins/Realtime/realtimeupdate.js b/plugins/Realtime/realtimeupdate.js index 4444d801d5..d1cf1d5070 100644 --- a/plugins/Realtime/realtimeupdate.js +++ b/plugins/Realtime/realtimeupdate.js @@ -35,7 +35,7 @@ RealtimeUpdate = { _deleteurl: '', _updatecounter: 0, _maxnotices: 50, - _windowhasfocus: false, + _windowhasfocus: true, init: function(userid, replyurl, favorurl, deleteurl) { @@ -48,7 +48,7 @@ RealtimeUpdate = { $(window).bind('focus', function(){ RealtimeUpdate._windowhasfocus = true; }); - $(window).blur(function() { + $(window).bind('blur', function() { $('#notices_primary .notice').removeClass('mark-top'); $('#notices_primary .notice:first').addClass('mark-top');