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

Use HTML template #12

Merged
merged 5 commits into from
Dec 31, 2022
Merged

Use HTML template #12

merged 5 commits into from
Dec 31, 2022

Conversation

gael-ian
Copy link
Member

As a first step to remove the dependency to jQuery (See #4), this replace nested item building strategy to use an HTML template tag instead of relying on the magic of $(templateString).

cocooned_add_item_link now generates the appropriate template tag aside its link and the javascript builder has been rewritten to change the value of any for, id or name attribute in the DOM subtree cloned from template content.

@gael-ian gael-ian merged commit ba9647a into next Dec 31, 2022
@gael-ian gael-ian deleted the use-html-template branch December 31, 2022 02:46
gael-ian added a commit that referenced this pull request Mar 7, 2023
* Replace association-insertion-template data attribute by an HTML template
* Rewrite JavaScript Builder to use a DOM DocumentFragment as its source
* Use the new Builder and adapt tests
* Use a data attribute instead of ID to identify template
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant