Add a way of seeing other users' chatter
[blerg.git] / www / js / blerg.js
index 96f6cb2..1f413ad 100644 (file)
@@ -208,6 +208,10 @@ User.prototype.show = function() {
     items.show();
     $('rss').show();
     $('rsslink').href = '/rss/' + this.username;
+    $$('[name=user.reflink]').each(function(e) {
+        e.href = '/#ref/' + this.username;
+    }.bind(this));
+    $('usercontrols').show();
 }
 
 User.prototype.loadItems = function(from, to) {
@@ -332,6 +336,7 @@ Tag.prototype.show = function() {
     $('newer_link').hide();
     $('rss').hide();
     items.show();
+    $('usercontrols').hide();
 }
 
 function postPopup() {
@@ -517,6 +522,7 @@ function hashSwitch() {
         $('older_link').hide();
         $('welcome').show();
         $('rss').hide();
+        $('usercontrols').hide();
         loadLatest();
     }
 }