From 007418fdab8f9f0c718a18568bfbf4377bb85364 Mon Sep 17 00:00:00 2001 From: Sarven Capadisli Date: Wed, 18 Nov 2009 12:46:36 +0000 Subject: Setting windowhasfocus to true by default --- plugins/Realtime/realtimeupdate.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins') diff --git a/plugins/Realtime/realtimeupdate.js b/plugins/Realtime/realtimeupdate.js index 4444d801d..d1cf1d507 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'); -- cgit v1.2.3-54-g00ecf