Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
wcms-openscholar
uw_virtual_site_homepage
Commits
c6bb36c2
Commit
c6bb36c2
authored
Apr 18, 2017
by
Eric Bremner
Browse files
ISTWCMS-1978: Making the twitter feed the same height as the content.
parent
7fb422db
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
js/uw_virtual_site_homepage.js
js/uw_virtual_site_homepage.js
+15
-0
No files found.
js/uw_virtual_site_homepage.js
View file @
c6bb36c2
...
...
@@ -28,6 +28,21 @@
if
(
$
(
'
.biblio-filter-status
'
).
length
>
0
)
{
$
(
'
#biblio-search-form
'
).
append
(
$
(
'
.biblio-filter-status
'
));
}
// If there is a twitter feed in the sidebar, set the max-height to the height of the content, only if the content height is larger than the preset max-height.
if
(
$
(
'
.twitter-sidebar-wrapper
'
).
length
>
0
)
{
if
(
$
(
'
#content
'
).
length
>
0
)
{
if
(
$
(
'
#content
'
).
height
()
>
$
(
'
.twitter-sidebar-wrapper
'
).
css
(
'
max-height
'
).
replace
(
'
px
'
,
''
))
{
$
(
'
.twitter-sidebar-wrapper
'
).
css
(
'
max-height
'
,
$
(
'
#content
'
).
height
()
+
'
px
'
);
}
}
if
(
$
(
'
.personal_frontpage_uw_scholar
'
).
length
>
0
)
{
if
(
$
(
'
.personal_frontpage_uw_scholar
'
).
height
()
>
$
(
'
.twitter-sidebar-wrapper
'
).
css
(
'
max-height
'
).
replace
(
'
px
'
,
''
))
{
$
(
'
.twitter-sidebar-wrapper
'
).
css
(
'
max-height
'
,
$
(
'
.personal_frontpage_uw_scholar
'
).
height
()
+
'
px
'
);
}
}
}
}
};
})(
jQuery
);
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment