Skip to content

Commit

Permalink
Change the trigger link to "Hide" when the UI is visible.
Browse files Browse the repository at this point in the history
  • Loading branch information
georgebrock committed May 10, 2009
1 parent 3e316ba commit 9ba07e3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions xfndiscovery.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion xfndiscovery.user.js
Expand Up @@ -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");
});
}
},

Expand Down

0 comments on commit 9ba07e3

Please sign in to comment.