diff options
author | Craig Andrews <candrews@integralblue.com> | 2009-11-20 11:16:39 -0500 |
---|---|---|
committer | Craig Andrews <candrews@integralblue.com> | 2009-11-20 11:16:39 -0500 |
commit | 09d67d6f80abdf577f6cd94d7be2bc19ce5541fa (patch) | |
tree | 31e779d99462e4326108a84b7589d4e72f9a192e /plugins/Mapstraction | |
parent | e9b877a4a37eb65c7a5a4505811706818c7c2f07 (diff) |
Fix js error on non-map containing pages
Diffstat (limited to 'plugins/Mapstraction')
-rw-r--r-- | plugins/Mapstraction/usermap.js | 2 |
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); } |