Navigation Menu

Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Commit

Permalink
Issue #40 : Remove some links in the sidebar, replace with a generic …
Browse files Browse the repository at this point in the history
…profile link
  • Loading branch information
brianking committed Feb 21, 2012
1 parent 5638052 commit 9eabf86
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
16 changes: 9 additions & 7 deletions chrome/content/bindings.xml
@@ -1,6 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?> <?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" <bindings id="textboxBindings"
xmlns="http://www.mozilla.org/xbl" xmlns="http://www.mozilla.org/xbl"
Expand Down Expand Up @@ -29,14 +34,11 @@
<children /> <children />
</xul:label> </xul:label>
<xul:label xbl:inherits="value=stime" class="stime" /> <xul:label xbl:inherits="value=stime" class="stime" />
<xul:hbox pack="start" class="facebook-friendlinks" > <xul:hbox pack="start" align="center" class="facebook-friendlinks" >
<xul:label value="&sidebar.friendmessage.label;" xbl:inherits="onclick=msgCmd" <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.friendpoke.label;" xbl:inherits="onclick=pokeCmd"
class="facebook-link mini-link" /> class="facebook-link mini-link" />
<xul:label value="-" style="color:#808080; font-size:9px;" /> <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" /> class="facebook-link mini-link" />
</xul:hbox> </xul:hbox>
</xul:vbox> </xul:vbox>
Expand Down
3 changes: 1 addition & 2 deletions chrome/content/sidebar.js
Expand Up @@ -230,9 +230,8 @@ function CreateFriendNode(list, friend, insertBefore) {
item.setAttribute('ptime', fbLib.getProfileTime(friend.ptime) ); item.setAttribute('ptime', fbLib.getProfileTime(friend.ptime) );
item.setAttribute('oncommand', "fbLib.OpenFBUrl('profile.php', '" + friend.id + "', event, null )"); 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('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('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); item.setAttribute('pic', friend.pic);
list.insertBefore(item, insertBefore); list.insertBefore(item, insertBefore);
} }
Expand Down

0 comments on commit 9eabf86

Please sign in to comment.