aboutsummaryrefslogtreecommitdiff
path: root/mod/profile/views
diff options
context:
space:
mode:
authorBrett Profitt <brett.profitt@gmail.com>2011-08-27 19:13:47 -0700
committerBrett Profitt <brett.profitt@gmail.com>2011-08-27 19:13:47 -0700
commitacc849f41fd05cfa38512a4ad5167ab8d52c905a (patch)
treee4ce50b037e36542d5efd3b73d0842218d3bf1de /mod/profile/views
parent146c55ddd745be06f6206e70884cb9e430ba6231 (diff)
downloadelgg-acc849f41fd05cfa38512a4ad5167ab8d52c905a.tar.gz
elgg-acc849f41fd05cfa38512a4ad5167ab8d52c905a.tar.bz2
Fixes #3561. Only adding the static profile block height to the widget canvas if on the profile page.
Diffstat (limited to 'mod/profile/views')
-rw-r--r--mod/profile/views/default/profile/js.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/mod/profile/views/default/profile/js.php b/mod/profile/views/default/profile/js.php
index edf68543c..16dec59df 100644
--- a/mod/profile/views/default/profile/js.php
+++ b/mod/profile/views/default/profile/js.php
@@ -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