Fix js error on non-map containing pages
This commit is contained in:
parent
e9b877a4a3
commit
09d67d6f80
@ -5,7 +5,7 @@ $(document).ready(function() {
|
|||||||
if(notice['geo'])
|
if(notice['geo'])
|
||||||
notices.push(notice);
|
notices.push(notice);
|
||||||
});
|
});
|
||||||
if($("#map_canvas") && notices.length>0)
|
if($("#map_canvas").length && notices.length>0)
|
||||||
{
|
{
|
||||||
showMapstraction($("#map_canvas"), notices);
|
showMapstraction($("#map_canvas"), notices);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user