Skip to content

Quality - Remediation - Add a button to quickly add / remove underscores around allergens in ingredient list #902

Description

What

Hi everyone, I've written a small Javascript function which facilitates the addition and removal of underscores around words, for the allergens in the ingredients list. You just have to select a word, or click on it, then press the button, and it adds or remove the underscores depending if they're present.
It's not much, but I believe it will make the edition quicker, especially when a list of ingredients lacks all the underscores, or on mobile.

Here is a html test page so you can try this function. Tell me if it can be used :)

Test gras.zip

Part of

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Projects

    • Status

      To discuss and validate

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions