mirror of
https://github.com/friendica/friendica
synced 2024-11-18 10:23:41 +00:00
Merge pull request #2601 from rabuzarus/1206-short-info-fix
frio: bind short-info scrollspy on class fn (insteadof p-addr)
This commit is contained in:
commit
9354d86f38
1 changed files with 4 additions and 4 deletions
|
@ -155,10 +155,10 @@ $(document).ready(function(){
|
|||
$(".search-content-wrapper #search-save-form ").appendTo("#topbar-second > .container > #navbar-button");
|
||||
|
||||
// append the vcard-short-info to the second nav after passing the element
|
||||
// with .p-addr (vcard). Use scrollspy to get the scroll position.
|
||||
if( $("aside .vcard .p-addr").length) {
|
||||
$(".vcard .p-addr").scrollspy({
|
||||
min: $(".vcard .p-addr").position().top - 50,
|
||||
// with .fn (vcard username). Use scrollspy to get the scroll position.
|
||||
if( $("aside .vcard .fn").length) {
|
||||
$(".vcard .fn").scrollspy({
|
||||
min: $(".vcard .fn").position().top - 50,
|
||||
onLeaveTop: function onLeave(element) {
|
||||
$("#vcard-short-info").fadeOut(500, function () {
|
||||
$("#vcard-short-info").appendTo("#vcard-short-info-wrapper");
|
||||
|
|
Loading…
Reference in a new issue