summaryrefslogtreecommitdiff
path: root/plugins/Realtime/realtimeupdate.js
diff options
context:
space:
mode:
authorSarven Capadisli <csarven@status.net>2009-11-18 12:46:36 +0000
committerSarven Capadisli <csarven@status.net>2009-11-18 12:46:36 +0000
commit007418fdab8f9f0c718a18568bfbf4377bb85364 (patch)
treedbda7d98c30c38b44ec9d5689a18d0059941ed31 /plugins/Realtime/realtimeupdate.js
parent0ae7a1df6e6520d513a93f8f8123015325be1260 (diff)
Setting windowhasfocus to true by default
Diffstat (limited to 'plugins/Realtime/realtimeupdate.js')
-rw-r--r--plugins/Realtime/realtimeupdate.js4
1 files changed, 2 insertions, 2 deletions
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');