Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move l10n.js to coreResourcesList #13612

Merged
merged 1 commit into from
Feb 16, 2019
Merged

Conversation

colemanw
Copy link
Member

Overview

This change allows core resources to be added to the list AFTER l10n variables have been initialized. This is needed by crm.menubar.js.

An upshot of this change is that hooks will be able to interact with it.

Another upshot of this change is that extensions will be able to add items to the list as fully-formed urls.

Before

l10n.js dynamic script was added outside of the coreResourcesList.

After

l10n.js dynamic script added within coreResourcesList.

Comments

This is a small chunk bitten off the mega #13582 to facilitate review.

This change allows core resources to be added to the list AFTER l10n variables
have been initialized. This is needed by crm.menubar.js.

Another upshot of this change is that extensions will be able to add items to the list
as fully-formed urls.
@civibot
Copy link

civibot bot commented Feb 16, 2019

(Standard links)

@civibot civibot bot added the master label Feb 16, 2019
@colemanw
Copy link
Member Author

@eileenmcnaughton care to trade review on this one?

@eileenmcnaughton
Copy link
Contributor

@colemanw OK

@eileenmcnaughton
Copy link
Contributor

I've made sense of the changes in here & they seem sensible & a code improvement - merging

@eileenmcnaughton eileenmcnaughton merged commit 1367684 into civicrm:master Feb 16, 2019
@eileenmcnaughton eileenmcnaughton deleted the l10n.js branch February 16, 2019 22:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants