Permalink
Browse files

Fixing a few links

  • Loading branch information...
1 parent cb20368 commit a4f9623a84c33e871ea77697bdde36510b0d18cf @brianking brianking committed Feb 10, 2012
Showing with 11 additions and 5 deletions.
  1. +8 −0 chrome/content/lib.js
  2. +1 −3 chrome/content/sidebar.js
  3. +2 −2 chrome/content/toolbar.xul
View
@@ -103,6 +103,14 @@ var fbLib = {
return false;
},
+ OpenNewStyleFBUrl: function(page, uid, e) {
+ var url = 'http://www.facebook.com/' + page + '/' + uid;
+ fbLib.debug('Opening ' + url);
+ openUILink(url, e);
+ e.stopPropagation();
+ return false;
+ },
+
OpenFBUrl: function(page, uid, e, params) {
var url = 'http://www.facebook.com/' + page + '?id=' + uid + '&src=fftb';
if (uid == "events")
@@ -230,11 +230,9 @@ function CreateFriendNode(list, friend, insertBefore) {
item.setAttribute('ptime', fbLib.getProfileTime(friend.ptime) );
item.setAttribute('oncommand', "fbLib.OpenFBUrl('profile.php', '" + friend.id + "', event, null )");
item.setAttribute('viewUpdCmd', "fbLib.OpenFBUrl('profile.php', '" + friend.id + "', event, {highlight: null} ); return false;");
- item.setAttribute('msgCmd', "fbLib.OpenFBUrl('message.php', '" + friend.id + "', event, null )");
+ item.setAttribute('msgCmd', "fbLib.OpenNewStyleFBUrl('messages', '" + friend.id + "', event, null )");
item.setAttribute('pokeCmd', "fbLib.OpenFBUrl('poke.php', '" + friend.id + "', event, null )");
item.setAttribute('postCmd', "fbLib.OpenFBUrl('wallpost.php', '" + friend.id + "', event, null )");
- //item.setAttribute('wallCmd', "fbLib.OpenFBUrl('wall.php', '" + friend.id + "', event)");
- //item.setAttribute('notesCmd', "fbLib.OpenFBUrl('notes.php', '" + friend.id + "', event)");
item.setAttribute('pic', friend.pic);
list.insertBefore(item, insertBefore);
}
@@ -62,7 +62,7 @@
label="?"
tooltiptext="&toolbar.button.pokes.tooltip;"
onclick="checkForMiddleClick(this, event);"
- oncommand="if (!fbSvc.loggedIn) { fbLib.FacebookLogin(); } else { openUILink('http://www.facebook.com/home.php?src=fftb', event); }"/>
+ oncommand="if (!fbSvc.loggedIn) { fbLib.FacebookLogin(); } else { openUILink('http://www.facebook.com/pokes?src=fftb', event); }"/>
<toolbarbutton id="facebook-notification-reqs"
class="facebook-icon-reqs facebook-notification button facebook-toolbar-button"
label="?"
@@ -241,7 +241,7 @@
style="display: none;"
onmousedown="this.doCommand()"
onmouseover="fbLib.SelectItemInList(this, this.parentNode)"
- oncommand="fbLib.OpenFBUrl('message.php', this.getAttribute('userid'), event)"/>
+ oncommand="fbLib.OpenNewStyleFBUrl('messages', this.getAttribute('userid'), event)"/>
<richlistitem id="PopupPoker"
class="facebook-friendlinks"
style="display: none;"

0 comments on commit a4f9623

Please sign in to comment.