Browse files

Issue #40 : Remove some links in the sidebar, replace with a generic …

…profile link
  • Loading branch information...
1 parent 5638052 commit 9eabf86eba3ba99962ffce6e786651c7c68e5fb1 brianking committed Feb 21, 2012
Showing with 10 additions and 9 deletions.
  1. +9 −7 chrome/content/bindings.xml
  2. +1 −2 chrome/content/sidebar.js
View
16 chrome/content/bindings.xml
@@ -1,6 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE bindings SYSTEM "chrome://facebook/locale/sidebar.dtd">
+<!DOCTYPE bindings [
+ <!ENTITY % sidebarDTD SYSTEM "chrome://facebook/locale/sidebar.dtd">
+ %sidebarDTD;
+ <!ENTITY % toolbarDTD SYSTEM "chrome://facebook/locale/toolbar.dtd">
+ %toolbarDTD;
+]>
<bindings id="textboxBindings"
xmlns="http://www.mozilla.org/xbl"
@@ -29,14 +34,11 @@
<children />
</xul:label>
<xul:label xbl:inherits="value=stime" class="stime" />
- <xul:hbox pack="start" class="facebook-friendlinks" >
- <xul:label value="&sidebar.friendmessage.label;" xbl:inherits="onclick=msgCmd"
- class="facebook-link mini-link" />
- <xul:label value="-" style="color:#808080; font-size:9px;" />
- <xul:label value="&sidebar.friendpoke.label;" xbl:inherits="onclick=pokeCmd"
+ <xul:hbox pack="start" align="center" class="facebook-friendlinks" >
+ <xul:label value="&toolbar.links.profile.label;" xbl:inherits="onclick=profileCmd"
class="facebook-link mini-link" />
<xul:label value="-" style="color:#808080; font-size:9px;" />
- <xul:label value="&sidebar.friendpost.label;" xbl:inherits="onclick=postCmd"
+ <xul:label value="&sidebar.friendmessage.label;" xbl:inherits="onclick=msgCmd"
class="facebook-link mini-link" />
</xul:hbox>
</xul:vbox>
View
3 chrome/content/sidebar.js
@@ -230,9 +230,8 @@ 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('profileCmd', "fbLib.OpenFBUrl('profile.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('pic', friend.pic);
list.insertBefore(item, insertBefore);
}

0 comments on commit 9eabf86

Please sign in to comment.