]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix js error on non-map containing pages
authorCraig Andrews <candrews@integralblue.com>
Fri, 20 Nov 2009 16:16:39 +0000 (11:16 -0500)
committerCraig Andrews <candrews@integralblue.com>
Fri, 20 Nov 2009 16:16:39 +0000 (11:16 -0500)
plugins/Mapstraction/usermap.js

index 7fb73fa88f82ff9b787549c2adbb258325fee4cf..19ec54c39277667c8a571da57f07f0f743981bc5 100644 (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);
      }