Permalink
Browse files

Change the trigger link to "Hide" when the UI is visible.

  • Loading branch information...
1 parent 3e316ba commit 9ba07e3ac02584dd80cc360a621df869ad79c1e1 @georgebrock committed May 10, 2009
Showing with 7 additions and 1 deletion.
  1. +2 −0 xfndiscovery.css
  2. +5 −1 xfndiscovery.user.js
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -251,11 +251,15 @@ XFNDiscovery.UI = {
$content.slideDown(function()
{
XFNDiscovery.discoverMoreProfiles();
+ $("#xfn-discovery a.trigger").html("Hide");
});
}
else
{
- $content.slideToggle();
+ $content.slideToggle(function()
+ {
+ $("#xfn-discovery a.trigger").html($(this).css("display") == "none" ? "More user profiles" : "Hide");
+ });
}
},

0 comments on commit 9ba07e3

Please sign in to comment.