summaryrefslogtreecommitdiff
path: root/plugins/Mapstraction/usermap.js
diff options
context:
space:
mode:
authorCraig Andrews <candrews@integralblue.com>2009-11-20 11:16:39 -0500
committerCraig Andrews <candrews@integralblue.com>2009-11-20 11:16:39 -0500
commit09d67d6f80abdf577f6cd94d7be2bc19ce5541fa (patch)
tree31e779d99462e4326108a84b7589d4e72f9a192e /plugins/Mapstraction/usermap.js
parente9b877a4a37eb65c7a5a4505811706818c7c2f07 (diff)
Fix js error on non-map containing pages
Diffstat (limited to 'plugins/Mapstraction/usermap.js')
-rw-r--r--plugins/Mapstraction/usermap.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Mapstraction/usermap.js b/plugins/Mapstraction/usermap.js
index 7fb73fa88..19ec54c39 100644
--- a/plugins/Mapstraction/usermap.js
+++ b/plugins/Mapstraction/usermap.js
@@ -5,7 +5,7 @@ $(document).ready(function() {
if(notice['geo'])
notices.push(notice);
});
- if($("#map_canvas") && notices.length>0)
+ if($("#map_canvas").length && notices.length>0)
{
showMapstraction($("#map_canvas"), notices);
}