]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Setting windowhasfocus to true by default
authorSarven Capadisli <csarven@status.net>
Wed, 18 Nov 2009 12:46:36 +0000 (12:46 +0000)
committerSarven Capadisli <csarven@status.net>
Wed, 18 Nov 2009 12:46:36 +0000 (12:46 +0000)
plugins/Realtime/realtimeupdate.js

index 4444d801d53f5dbf6d311348de5f96e4e8ac7475..d1cf1d5070792f9d28eb2241b32b142269ccce41 100644 (file)
@@ -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');