Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
I think I've run into trouble with JS preprocessing / aggregation with the current theme_google_store_locator_contents()
.
As soon as I enable the preprocessing the store locator ceases to work.
As far as I can tell this is related the weight/grouping of the attached javascript files.
Proposed resolution
I think the google map and store locator libraries should be declared as libraries using the group
option.
Remaining tasks
Reviews needed.
User interface changes
None
API changes
None
Data model changes
None
Comment | File | Size | Author |
---|---|---|---|
#2 | google_store_locator-set-js-group-2893368-2.patch | 1.35 KB | das-peter |
Comments
Comment #2
das-peter CreditAttribution: das-peter at Cando commentedAdded weight to the
store-locator
files in order to come after the google maps API.Fixed parenthesis in
store-locator.compiled.js
code.Comment #3
rodrigoeg CreditAttribution: rodrigoeg at CI&T commentedThanks @das-peter
I committed the changed in the dev branch
Comment #5
rodrigoeg CreditAttribution: rodrigoeg at CI&T commented