Hey guys,

We are using Admin module to morph the Drupal 6 backend into the sexy sleek admin. I've noticed that in a node form, Location makes a call to Gmap (if Coordinate Chooser is enabled in a form) and Gmap is not using drupal_add_js to do so. Admin module loads all JS in the footer, and hence I get jQuery is undefined in Firebug and 'Javascript must be enabled to view this map' since the inline script is being output before the footer and doesn't know what jQuery.extend is.

Does anyone have a fix for this?

Comments

kevinquillen’s picture

Project: Location » GMap Module
Version: 6.x-3.x-dev » 6.x-1.x-dev
WillHall’s picture

I had the same issue - I ->seemed<- to have resolved it by opening up gmap.module and replacing "return $o" with "drupal_add_js($data = $o);"

This effectively put the script down into my footer.

kevinquillen’s picture

I also get jQuery is undefined now since my scripts are in the footer.

Nevermind. The js error is gone, but no map on my configuration pages.

johnv’s picture

Status: Active » Closed (won't fix)

Closing this very old issue. Please reopen if it is still valid.