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

When using jQuery-UI autocomplete, honour _renderItem extension point; use \n as a delimiter #77

Open
wants to merge 51 commits into
base: master
Choose a base branch
from

Conversation

alfonsomunozpomer
Copy link

The _renderItem extension in autocomplete is called if it’s been defined.
When pasting multiline text, split into tags if \n is a delimiter character.

@alfonsomunozpomer alfonsomunozpomer changed the title When using jQuery-UI autocomplete, honour _renderItem extension point When using jQuery-UI autocomplete, honour _renderItem extension point; use \n as a delimiter Feb 24, 2016
alfonsomunozpomer added a commit to ebi-gene-expression-group/atlas that referenced this pull request Feb 24, 2016
…dex - Use \n as delimiter; honour _renderItem in jQuery-UI autocomplete Pixabay/jQuery-tagEditor#77
Using the public method addTag with a duplicate causes two empty tags to be inserted before the duplicate at the end. Support is removed until it works perfectly.
…ee a portable way to support it for OS X as well (metaKey); besides it’s ugly as it shows the hidden separator char
Using the public method addTag with a duplicate causes two empty tags to be inserted before the duplicate at the end. Support is removed until it works perfectly.
(cherry picked from commit 2bc18ea)
(cherry picked from commit 11d4a96)
…ee a portable way to support it for OS X as well (metaKey); besides it’s ugly as it shows the hidden separator char

(cherry picked from commit ae3123b)
…ring; add tag object fields as data attributes to the <div class="tag-editor-tag"> element
alfonsomunozpomer and others added 23 commits May 16, 2016 17:25
…rk; input is parsed as JSON only (no objects are accepted anymore)
…g isn’t there yet and we can’t retrieve the data attribute
…ray of strings, array of objects or JSON array
…value is displayed (instead of a “big enough” number)
…to the assign clause.

    I saw that the properties of $(e).get(0).dataset are enumerable in Chrome, but not in Safari. This makes the tags object be empty every time, because - as MDN explains - Object.assign only copies own and enumerable properties.
Make onChange work on Safari
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants