Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | add test | David Knaack | 2016-09-26 | 1 | -0/+8 |
| | |||||
* | Loop around options using for next or previous | dhoko | 2016-08-16 | 2 | -4/+4 |
| | |||||
* | Consistent quotes style | Vladislav Zarakovsky | 2016-06-24 | 6 | -9/+9 |
| | |||||
* | Emit close reason with awesomplete-close events | Jim Fitzpatrick | 2016-06-22 | 6 | -7/+23 |
| | | | | | | | | | Emit a reason when firing `awesomplete-close` events to provide transparency to attached event listeners regarding the circumstance in which the close was triggered. Reasons include `blur`, `esc`, `submit`, `select`, and `nomatches`. Closes #16897 | ||||
* | Return early from close if not open | Jim Fitzpatrick | 2016-06-21 | 1 | -0/+8 |
| | | | | | | | If the popup is already in a closed state, return early from `Awesomplete.prototype.close` so as to guarantee that when `awesomplete-close` events get triggered, the popup *was* actually closed. | ||||
* | Pass suggestion item to awesomplete-selectcomplete and awesomplete-highlight ↵ | Vladislav Zarakovsky | 2016-03-13 | 2 | -2/+10 |
| | | | | events | ||||
* | Remove redundant evt.data, it's same at evt.text | Vladislav Zarakovsky | 2016-03-12 | 1 | -1/+0 |
| | | | | Agreed in https://github.com/LeaVerou/awesomplete/issues/16821#issuecomment-185901377 | ||||
* | Support list with separate label/value via <datalist> or <ul> | Vladislav Zarakovsky | 2016-03-12 | 1 | -6/+29 |
| | |||||
* | Separate label/value for each suggestion on the list. | Vladislav Zarakovsky | 2016-03-12 | 4 | -3/+26 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | It is now possible to show a suggestion label in completer, but insert a suggestion value into the input instead. In addition to String as before, each list item now can also be: - a `{ label, value }` Object - a `[ label, value ]` Array To show full country name in completer, but insert country code into the input you can use these items: - `{ label: "United States", value: "US" }` - `[ "United States", "US" ]` Despite this data format change, old code will continue to work as before. This is taken care by `Suggestion()`. It uses `label` property automatically when string is expected anywhere in the API. One known issue is that accessing suggestion's characters by index won't work with old API. It's easy to fix though. Instead of `item[idx]` use `item.value[idx]` or `item.label[idx]` directly. In addition to default support for String/Object/Array items, we also add `data` method, which can be used to support any additional custom item formats and to generate data dynamically, as in changed Email example. The only thing you need to do in this case is to return item in any of String/Array/Object formats supported by default. | ||||
* | Revert "Changed event property name: origin -> originalTarget" | Vladislav Zarakovsky | 2016-02-17 | 1 | -1/+1 |
| | | | | This reverts commit 1f86aaf981910686e11ffea47c24c8838a17d7d8. | ||||
* | Fix typo in test | Vladislav Zarakovsky | 2016-02-17 | 1 | -1/+1 |
| | |||||
* | Changed event property name: origin -> originalTarget | Vladislav Zarakovsky | 2016-02-07 | 1 | -1/+1 |
| | |||||
* | Add item data to awesomplete-select event | Vladislav Zarakovsky | 2016-02-01 | 1 | -0/+1 |
| | |||||
* | Tests for Awesomplete.ITEM and Awesomplete.REPLACE | Vladislav Zarakovsky | 2016-01-30 | 3 | -4/+65 |
| | |||||
* | Big tests cleanup | Vladislav Zarakovsky | 2016-01-28 | 20 | -257/+114 |
| | |||||
* | Pass origin element to awesomplete-select instead of event | Vladislav Zarakovsky | 2016-01-23 | 1 | -2/+2 |
| | |||||
* | Fix #16808. Input loses focus if item selected with mouse. | Vladislav Zarakovsky | 2016-01-08 | 1 | -1/+2 |
| | |||||
* | Fix tests for new feature | Vladislav Zarakovsky | 2015-12-28 | 2 | -6/+7 |
| | |||||
* | Tests for merged #16791 Don't select items on mouse right-click | Vladislav Zarakovsky | 2015-12-05 | 1 | -13/+24 |
| | |||||
* | Covered some missed branches | Vladislav Zarakovsky | 2015-11-25 | 4 | -3/+27 |
| | |||||
* | Simplify tests by inlining and using $.spyOnEvent helper | Vladislav Zarakovsky | 2015-11-25 | 6 | -42/+31 |
| | |||||
* | Fix tests run in Firefox | Vladislav Zarakovsky | 2015-11-25 | 1 | -0/+4 |
| | |||||
* | keydown event tests | Vladislav Zarakovsky | 2015-11-24 | 2 | -0/+64 |
| | |||||
* | form submit event tests | Vladislav Zarakovsky | 2015-11-24 | 2 | -0/+23 |
| | |||||
* | mousedown event tests | Vladislav Zarakovsky | 2015-11-24 | 1 | -0/+45 |
| | |||||
* | input event tests | Vladislav Zarakovsky | 2015-11-24 | 1 | -0/+17 |
| | |||||
* | blur event tests | Vladislav Zarakovsky | 2015-11-24 | 1 | -0/+17 |
| | |||||
* | awesomplete.selected tests | Vladislav Zarakovsky | 2015-11-24 | 1 | -0/+41 |
| | |||||
* | awesomplete.opened tests | Vladislav Zarakovsky | 2015-11-24 | 1 | -0/+26 |
| | |||||
* | awesomplete.evaluate tests | Vladislav Zarakovsky | 2015-11-24 | 1 | -0/+57 |
| | |||||
* | awesomplete.select tests | Vladislav Zarakovsky | 2015-11-24 | 1 | -0/+130 |
| | |||||
* | awesomplete.goto tests | Vladislav Zarakovsky | 2015-11-24 | 1 | -0/+66 |
| | |||||
* | awesomplete.previous tests | Vladislav Zarakovsky | 2015-11-24 | 1 | -0/+57 |
| | |||||
* | awesomplete.next tests | Vladislav Zarakovsky | 2015-11-24 | 2 | -0/+73 |
| | |||||
* | awesomplete.open tests | Vladislav Zarakovsky | 2015-11-24 | 1 | -0/+53 |
| | |||||
* | awesomplete.close tests | Vladislav Zarakovsky | 2015-11-24 | 2 | -2/+39 |
| | |||||
* | Awesomplete.$.regExpEscape tests | Vladislav Zarakovsky | 2015-11-24 | 1 | -0/+38 |
| | |||||
* | Awesomplete.$.fire tests | Vladislav Zarakovsky | 2015-11-24 | 1 | -0/+60 |
| | |||||
* | Awesomplete.$$ tests | Vladislav Zarakovsky | 2015-11-24 | 2 | -0/+53 |
| | |||||
* | Awesomplete.$ tests | Vladislav Zarakovsky | 2015-11-24 | 1 | -0/+62 |
| | |||||
* | Awesomplete.$.create tests | Vladislav Zarakovsky | 2015-11-24 | 1 | -0/+102 |
| | |||||
* | Awesomplete.$.bind tests | Vladislav Zarakovsky | 2015-11-24 | 1 | -0/+61 |
| | |||||
* | Awesomplete.SORT_BYLENGTH tests | Vladislav Zarakovsky | 2015-11-24 | 1 | -0/+51 |
| | |||||
* | Awesomplete.FILTER_STARTSWITH tests | Vladislav Zarakovsky | 2015-11-24 | 1 | -0/+60 |
| | |||||
* | Awesomplete.FILTER_CONTAINS tests | Vladislav Zarakovsky | 2015-11-24 | 1 | -0/+60 |
| | |||||
* | Awesomplete.all tests | Vladislav Zarakovsky | 2015-11-24 | 2 | -0/+23 |
| | |||||
* | Html modifications tests | Vladislav Zarakovsky | 2015-11-24 | 2 | -0/+61 |
| | |||||
* | List initialization tests | Vladislav Zarakovsky | 2015-11-24 | 2 | -0/+95 |
| | |||||
* | Constructor options tests | Vladislav Zarakovsky | 2015-11-24 | 3 | -0/+107 |
| | |||||
* | Set correct fixtures path | Vladislav Zarakovsky | 2015-11-24 | 1 | -0/+1 |
| | |||||
* | forget to add shared file | Herre Groen | 2015-10-29 | 1 | -0/+45 |
| | |||||
* | expand test-suite | Herre Groen | 2015-10-29 | 1 | -21/+63 |
| | |||||
* | Flatten tests/ directory and rename to test/ (common convention) | Vladislav Zarakovsky | 2015-05-19 | 1 | -0/+75 |