From 3f30c9270e6c279a10025afc67417875eb7b4bab Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Sat, 16 May 2009 00:48:16 +0000 Subject: work around for IE when no tags present --- views/default/js/tidypics.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'views/default') 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); -- cgit v1.2.3