]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixes #3561. Only adding the static profile block height to the widget canvas if...
authorBrett Profitt <brett.profitt@gmail.com>
Sun, 28 Aug 2011 02:13:47 +0000 (19:13 -0700)
committerBrett Profitt <brett.profitt@gmail.com>
Sun, 28 Aug 2011 02:13:47 +0000 (19:13 -0700)
mod/profile/views/default/profile/js.php

index edf68543c2bfb59188041a9524ec24347298bcd7..16dec59dfba5fdcad09f7f90f3be9b727112b683 100644 (file)
@@ -1,3 +1,6 @@
 elgg.register_hook_handler('init', 'system', function() {
-       $('#elgg-widget-col-1').css('min-height', $('.profile').outerHeight(true) + 1);
+       // only do this on the profile page's widget canvas.
+       if ($('.profile').length) {
+               $('#elgg-widget-col-1').css('min-height', $('.profile').outerHeight(true) + 1);
+       }
 });
\ No newline at end of file