aboutsummaryrefslogtreecommitdiff
path: root/views/default/js/tidypics.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2009-05-16 00:48:16 +0000
committerCash Costello <cash.costello@gmail.com>2009-05-16 00:48:16 +0000
commit3f30c9270e6c279a10025afc67417875eb7b4bab (patch)
tree9e2634ec5dd04d3458c22d10c52135e8b1020158 /views/default/js/tidypics.php
parentaf26a60db00294af093bf8e385d3e628de1c47d2 (diff)
downloadelgg-3f30c9270e6c279a10025afc67417875eb7b4bab.tar.gz
elgg-3f30c9270e6c279a10025afc67417875eb7b4bab.tar.bz2
work around for IE when no tags present
Diffstat (limited to 'views/default/js/tidypics.php')
-rw-r--r--views/default/js/tidypics.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/views/default/js/tidypics.php b/views/default/js/tidypics.php
index c3520842a..ec2c5dd98 100644
--- a/views/default/js/tidypics.php
+++ b/views/default/js/tidypics.php
@@ -83,6 +83,10 @@
function appendTag(offset, tag)
{
+ // catch for IE when no tags available
+ if (tag.id == undefined)
+ return;
+
tag_top = parseInt(imgOffset.top) + parseInt(tag.y1);
tag_left = parseInt(imgOffset.left) + parseInt(tag.x1);