ensure proper styling of webpage thumbnails
This commit is contained in:
parent
a17c087454
commit
4234c60a55
1 changed files with 6 additions and 3 deletions
|
@ -3,11 +3,14 @@
|
|||
$(document).ready(function(){
|
||||
|
||||
// ensures proper layout when an organization has its webpage link displayed as a thumnail.
|
||||
if ( $('ul.webpages-withThumnails').length > 0 ) {
|
||||
// there's a timing issue, so we can't check the length here, so check the role just to see
|
||||
// if $('ul.webpages-withThumnails') exists
|
||||
if ( $('ul.webpages-withThumbnails').children('li').length > 0 ) {
|
||||
$('div.individual-overview').css("float","left");
|
||||
$('div#activeGrantsLink').css("margin-top","30px");
|
||||
$('section#individual-info').children('h2#overview').css("clear","both");
|
||||
}
|
||||
|
||||
// "more"/"less" HTML truncator for showing more or less content in data property core:overview
|
||||
$('.overview-value').truncate({max_length: 500});
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue