From: Craig Andrews Date: Fri, 20 Nov 2009 16:16:39 +0000 (-0500) Subject: Fix js error on non-map containing pages X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=09d67d6f80abdf577f6cd94d7be2bc19ce5541fa;p=quix0rs-gnu-social.git Fix js error on non-map containing pages --- diff --git a/plugins/Mapstraction/usermap.js b/plugins/Mapstraction/usermap.js index 7fb73fa88f..19ec54c392 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); }