Fix js error on non-map containing pages

This commit is contained in:
Craig Andrews 2009-11-20 11:16:39 -05:00
parent e9b877a4a3
commit 09d67d6f80
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}