diff options
author | Evan Prodromou <evan@status.net> | 2010-11-12 11:46:45 -0500 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2010-11-12 11:48:17 -0500 |
commit | b6af5a25ba61ef3c86a3772abea7ac95778689f7 (patch) | |
tree | dcdb22def19cfea46b352ab0ef00536cbd3b500a /plugins/Mapstraction | |
parent | 09aaf21e8d9be5fc0ed82df0028125c9fd96e48d (diff) |
don't try to initialize the mapstraction canvas if it doesn't exist
Diffstat (limited to 'plugins/Mapstraction')
-rw-r--r-- | plugins/Mapstraction/MapstractionPlugin.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/Mapstraction/MapstractionPlugin.php b/plugins/Mapstraction/MapstractionPlugin.php index c4ba6464e..d5261d8bc 100644 --- a/plugins/Mapstraction/MapstractionPlugin.php +++ b/plugins/Mapstraction/MapstractionPlugin.php @@ -156,7 +156,8 @@ class MapstractionPlugin extends Plugin ' var user = null; '. (($actionName == 'showstream') ? ' user = scrapeUser(); ' : '') . ' var notices = scrapeNotices(user); ' . - ' showMapstraction($("#map_canvas"), notices); '. + ' var canvas = $("#map_canvas")[0]; ' . + ' if (typeof(canvas) != "undefined") { showMapstraction(canvas, notices); } '. '});'); } |