summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2009-10-19 09:26:40 -0700
committerBrion Vibber <brion@pobox.com>2009-10-19 09:26:40 -0700
commitdfc1be67bbcfb6b2d3c0eb31791381e072bfc847 (patch)
treef862de9a5d7346fcc59f5cb321db1e94c19de62c
parent39598582d90eab2a8abaf2ca01bcad6cb09d2c73 (diff)
parentd18f4a35edd055edb3e21153a0a94bb2c1cbc2f1 (diff)
Merge branch '0.9.x' into i18n-0.9.x
-rw-r--r--plugins/Realtime/realtimeupdate.js13
-rw-r--r--theme/default/css/display.css2
2 files changed, 12 insertions, 3 deletions
diff --git a/plugins/Realtime/realtimeupdate.js b/plugins/Realtime/realtimeupdate.js
index a75f17d8c..9371326fe 100644
--- a/plugins/Realtime/realtimeupdate.js
+++ b/plugins/Realtime/realtimeupdate.js
@@ -7,6 +7,7 @@ RealtimeUpdate = {
_replyurl: '',
_favorurl: '',
_deleteurl: '',
+ _updatecounter: 0,
init: function(userid, replyurl, favorurl, deleteurl)
{
@@ -15,6 +16,8 @@ RealtimeUpdate = {
RealtimeUpdate._favorurl = favorurl;
RealtimeUpdate._deleteurl = deleteurl;
+ DT = document.title;
+
$(window).blur(function() {
$('#notices_primary .notice').css({
'border-top-color':$('#notices_primary .notice:last').css('border-top-color'),
@@ -25,7 +28,10 @@ RealtimeUpdate = {
'border-top-color':'#AAAAAA',
'border-top-style':'solid'
});
-
+
+ RealtimeUpdate._updatecounter = 0;
+ document.title = DT;
+
return false;
});
},
@@ -39,12 +45,15 @@ RealtimeUpdate = {
if ($("#notice-"+id).length > 0) {
return;
}
-
+
var noticeItem = RealtimeUpdate.makeNoticeItem(data);
$("#notices_primary .notices").prepend(noticeItem);
$("#notices_primary .notice:first").css({display:"none"});
$("#notices_primary .notice:first").fadeIn(1000);
NoticeReply();
+
+ RealtimeUpdate._updatecounter += 1;
+ document.title = '('+RealtimeUpdate._updatecounter+') ' + DT;
}, 500);
},
diff --git a/theme/default/css/display.css b/theme/default/css/display.css
index 3993da717..6833373b4 100644
--- a/theme/default/css/display.css
+++ b/theme/default/css/display.css
@@ -18,7 +18,7 @@ font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
font-size:1em;
}
address {
-margin-right:7.2%;
+margin-right:5.8%;
}
input, textarea, select, option {