Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 9ba07e3ac02584dd80cc360a621df869ad79c1e1 1 parent 3e316ba
@georgebrock authored
Showing with 7 additions and 1 deletion.
  1. +2 −0  xfndiscovery.css
  2. +5 −1 xfndiscovery.user.js
View
2  xfndiscovery.css
@@ -26,6 +26,8 @@
color: #fff;
background: rgba(221,0,0,0.8);
padding: 0 1em;
+ min-width: 10em;
+ text-align:center;
cursor:pointer;
}
View
6 xfndiscovery.user.js
@@ -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");
+ });
}
},
Please sign in to comment.
Something went wrong with that request. Please try again.