Team:ETH Zurich/tpl/read-more

From 2014.igem.org

(Difference between revisions)
Line 10: Line 10:
$p  = $el.parent();
$p  = $el.parent();
$up = $p.parent();
$up = $p.parent();
-
$ps = $up.find("p:not('.read-more')");
+
$ps = $up.find("not('.read-more')");
-
$up.each(function() {
+
$ps.each(function() {
-
totalHeight += $up.outerHeight();
+
totalHeight += $ps.outerHeight();
});
});
Line 19: Line 19:
.css({
.css({
// Set height to prevent instant jumpdown when max height is removed
// Set height to prevent instant jumpdown when max height is removed
-
"height": $up.height(),
+
"height": $ps.height(),
"max-height": 999999
"max-height": 999999
})
})

Revision as of 12:56, 15 August 2014