This repository was archived by the owner on Apr 28, 2020. It is now read-only.
forked from loopj/jquery-tokeninput
-
Notifications
You must be signed in to change notification settings - Fork 18
Sync with loopj/jquery-tokeninput #17
Open
kusmierz
wants to merge
70
commits into
vdepizzol:master
Choose a base branch
from
kusmierz:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…mically at each request
…pulated with one value and the limit on tokens is 1, then I am still allowed to add 2 tokens.
Fixed the issue described in #50 and #53, thanks otaviomedeiros
Adds IDs for the input fields generated by jQuery TokenInput
Clear out unselected text on blur
Don't add tokens if limit has been reached.
Adding a public method to fetch the token objects programatically
Allowing to change the value of the tokens held in the orignal input
Allow functions as URL
…ighlighting. Both optional fields have their original defaults, but can be overriden using a function that recieves a results item in JSON format as its argument and returns a an HTML string. Any templating system can be used inside this function. Known bugs: (1) highlighter function cannot handle strings with characters accented with diacritics; (2) highlighter may also highlight the string term in other parts of the populated template if the value of the propertyToSearch key exists elsewhere in the template in the same case
…ion. Should Token data attributes include all attributes from the returned JSON object or only 'id' and the propertyToSearch
…happens, so that a change listener can be added to the original element
…to end of demo.html
Fire a change event from the original input every time a user action takes place
New features: propertyToSearch, resultsFormatter and tokenFormatter
Z-index is now working, syntax was not correct
… id. Then allow the tokenValue to be a function that is passed the item, and returns a string. This allows more complex data than just the id to be sent to the server.
font-family improvements
Allow tokenValue to be a function for more complex use cases
This makes it possible to add new entries on the server side. See https://github.com/loopj/jquery-tokeninput/issues/11
Don't change the search term to lower case
…00px, the dropdown's width, will not fit it and it's bigger or smaller.
resolve the bug about the width of dropdown
Add functionality to toggle enabling / disabling the widget. Added example of this functionality to demo.html Fixes issue #47 from upstream
This was sort-of resolved by loopj#216, but the query was still being lowercased in one place, meaning that the results were not being rendered (!!) when the query contained uppercase chars.
…e_search_term Fix results when query contains uppercase characters
Add toggleDisable functionality
…teURL(). Allows for greater dynamic URL functionality with references back to the original init() of the token-input.
Small change to improve dynamic URL function ability
set the real width to the dropdown so that it exactly matches its relate...
New config option: z-index
Fixes #247
Currently tokeninput sometimes loses focus when navigating between tokens using the keyboard in Internet Explorer. Here we apply what seems to be the common workaround for problems with focus behavior in IE, namely wrapping requests for focus inside a setTimeout.
Fix for IE focus bug, #258
Fixes the issue by taking kuroir's suggestion of preventing the default action. To be consistent with the rest of the code, we do this by returning false in the event handler.
Fix for #49, IE arrow keys strangeness
…lus some fixes
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.