ensure proper styling of webpage thumbnails

This commit is contained in:
tworrall 2013-02-21 15:08:23 -05:00
parent a17c087454
commit 4234c60a55

View file

@ -3,11 +3,14 @@
$(document).ready(function(){ $(document).ready(function(){
// ensures proper layout when an organization has its webpage link displayed as a thumnail. // 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.individual-overview').css("float","left");
$('div#activeGrantsLink').css("margin-top","30px"); $('div#activeGrantsLink').css("margin-top","30px");
$('section#individual-info').children('h2#overview').css("clear","both"); $('section#individual-info').children('h2#overview').css("clear","both");
} }
// "more"/"less" HTML truncator for showing more or less content in data property core:overview // "more"/"less" HTML truncator for showing more or less content in data property core:overview
$('.overview-value').truncate({max_length: 500}); $('.overview-value').truncate({max_length: 500});