From 9eabf86eba3ba99962ffce6e786651c7c68e5fb1 Mon Sep 17 00:00:00 2001 From: brianking Date: Tue, 21 Feb 2012 16:24:05 +0100 Subject: [PATCH] Issue #40 : Remove some links in the sidebar, replace with a generic profile link --- chrome/content/bindings.xml | 16 +++++++++------- chrome/content/sidebar.js | 3 +-- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/chrome/content/bindings.xml b/chrome/content/bindings.xml index 0521f13..cbf62bb 100644 --- a/chrome/content/bindings.xml +++ b/chrome/content/bindings.xml @@ -1,6 +1,11 @@ - + + %sidebarDTD; + + %toolbarDTD; +]> - diff --git a/chrome/content/sidebar.js b/chrome/content/sidebar.js index 7b37c98..ee1df7b 100755 --- a/chrome/content/sidebar.js +++ b/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); }