From 09d67d6f80abdf577f6cd94d7be2bc19ce5541fa Mon Sep 17 00:00:00 2001 From: Craig Andrews Date: Fri, 20 Nov 2009 11:16:39 -0500 Subject: [PATCH] Fix js error on non-map containing pages --- plugins/Mapstraction/usermap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.39.5