js buttons not working when adding store details
-
When adding new store:
wp-admin/post-new.php?post_type=wpsl_stores
The plugin attempts to load a Google map, however for us initializeGmap() is called before the Gmap has fully loaded, resulting in a “google undefined” error and js buttons not working (in when adding store details page)
Solution:
1. in wp-store-locator/admin/js/wpsl-admin.js, comment the initializeGmap(); call.
2. inwp-store-locator/admin/class-admin.php
when enqueuing google map script add a parameter: callback = initializeGmapPlease let me know what you think; perhaps you can do it better than this.
The page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘js buttons not working when adding store details’ is closed to new replies.