Commit graph

403 commits

Author SHA1 Message Date
Josh Johnson ca33f15504 Version 2.7.3 2017-02-17 09:26:08 +00:00
Josh Johnson c63d025e96 Minor improvements to type checking 2017-02-17 09:23:52 +00:00
Josh Johnson f485814dd0 Version 2.7.2 2017-02-10 09:02:10 +00:00
Josh Johnson 6abeb65c95 Remove loading state if empty array passed to .ajax() 2017-02-10 09:01:20 +00:00
Josh Johnson ba0de5c679 Version 2.7.1 2017-02-09 13:50:14 +00:00
Josh Johnson ccfad3cf9b Ability to pass function to no choice/result notices 2017-02-09 13:49:30 +00:00
Josh Johnson 473f010998 Version 2.7.0 2017-02-05 09:46:37 +00:00
Josh Johnson 8c2d951947 Merge remote-tracking branch 'origin/master' 2017-02-05 09:44:14 +00:00
Josh Johnson cfd03b9302 Create unique group id if none passed 2017-02-05 09:41:59 +00:00
Mike Robertson c3c31edc04 Throw an error if id field is missing from group object at addGroup function invocation. 2017-01-31 11:30:21 -05:00
Josh Johnson 24452331ed Merge pull request #107 from StephaneTrebel/master
Add default type for remove item buttons
2017-01-31 09:43:07 +00:00
Flaoua e738e1ad46 Add type 'button' for remove item buttons 2017-01-31 05:15:01 +01:00
Mike Robertson b0e96d7038 use result.id instead of the index in all places that do that 2017-01-30 14:48:55 -05:00
Josh Johnson 449baf2a0a Version 2.6.2 2017-01-26 09:16:21 +00:00
Arthur b557de3400 Accept page up/down to skip to the first/last options 2017-01-25 11:16:58 -02:00
Paul Laros 24c6803391 Added resetScrollPosition option 2017-01-12 15:13:21 +01:00
Josh Johnson 677e1aa58f Build 2017-01-01 16:02:51 +00:00
Josh Johnson 7acf306aff Merge branch 'feature/fuse-config' of github.com:jshjohnson/Choices 2017-01-01 16:01:51 +00:00
Josh Johnson 3a839260cd Build 2017-01-01 16:01:35 +00:00
Josh Johnson 82a2a37298 Update read me 2017-01-01 16:00:31 +00:00
Josh Johnson d0b78438bb Expose fuse options in config 2017-01-01 15:59:43 +00:00
Josh Johnson ec0d336072 Version 2.6.0 2017-01-01 15:32:09 +00:00
Rico Sta. Cruz 135ca8c1f8
Allow empty values 2016-12-29 15:06:42 +08:00
Josh Johnson 6c29011d9b Rebuild 2016-11-29 09:50:03 +00:00
Yuri S 0b9651aa83 Fix Pressing enter submits the form #54 2016-11-28 18:12:45 +05:00
Josh Johnson 4e8b66af80 Correct version name in file 2016-11-16 10:55:05 +00:00
Josh Johnson 325a27cac2 Update documentation 2016-11-07 14:05:31 +00:00
fabien.leconte c57d6c76fc - Callback calls using 'call' to force 'this' to the instance of Choices that triggered the function 2016-11-07 11:37:47 +01:00
fabien.leconte 8be12c20cd - Add support of custom labels for i18n purpose 2016-11-07 11:27:04 +01:00
Josh Johnson 8fabf6788b Ensure Require.js export works 2016-10-28 21:59:43 +01:00
Josh Johnson 1fcd9dea0d Cache object lookups 2016-10-26 15:43:15 +01:00
Josh Johnson d6f34fc70e Merge remote-tracking branch 'origin/master' 2016-10-22 21:05:33 +01:00
Josh Johnson c620f2c28a Build 2016-10-22 21:05:29 +01:00
Josh Johnson ca0541b91a Function to handle input width sizing + minor tweaks 2016-10-22 21:04:13 +01:00
Josh Johnson 378c6dbafa Resolve init/destroy bug 2016-10-22 20:15:28 +01:00
Nathaniel Watson af970ec776 Fix noResultsText typo (round -> found) 2016-10-21 17:43:32 +13:00
Josh Johnson c867558dcd Update read me + default value for replaceChoices 2016-10-19 07:35:42 +01:00
Josh Johnson de33f6b6e3 Ability to remove choices when setting + callback improvements 2016-10-19 07:33:38 +01:00
Josh Johnson 377c61fb0c Version 2.3.0 2016-10-18 19:41:05 +01:00
Josh Johnson 5c04638bef Group value callback tweaks 2016-10-18 19:39:49 +01:00
Josh Johnson 5cc10cdcbb Pass group value to callbacks 2016-10-18 19:23:22 +01:00
Josh Johnson 4e232e8931 Reduce specificity of group headings class 2016-10-18 18:55:49 +01:00
Josh Johnson 9e9d820f56 Output expanded css 2016-10-18 18:52:48 +01:00
Josh Johnson b3071cc0dd Webpack UMD wrapper 2016-10-18 14:15:00 +01:00
Josh Johnson b73893c963 Merge branch 'pr-setchoices' of https://github.com/froggiefab/Choices into froggiefab-pr-setchoices 2016-10-12 13:31:30 +01:00
Zach Schnackel e73575fb33 Shorten list style declaration
According to http://stackoverflow.com/questions/19889069/whats-the-difference-between-list-style-type-and-list-style `list-style` can be substituted for `list-style-type` if it's meant to replace all relevant sub-styles (position and image).
2016-10-11 20:23:22 -04:00
fabien.leconte aa04aec6e1 - Add support of custom properties names for the "_addGroup" function
- Handle groups in ajax callback
2016-10-10 14:17:35 +02:00
Josh Johnson 514d68890b Loading state call removal 2016-10-02 16:43:00 +01:00
Josh Johnson 56e3465ac0 Housekeeping 2016-09-30 13:50:23 +01:00
fabien.leconte 3ea9fa56a7 Rebase https://github.com/jshjohnson/Choices into pr-custom-templates 2016-09-30 09:46:27 +02:00
fabien.leconte c8d508f4de New callback to allow user to customize templates. 2016-09-30 09:44:51 +02:00
Josh Johnson 54510a2671 Be implicit with loading state calls 2016-09-29 14:25:08 +01:00
fabien.leconte 0b00bdb848 "selected" and "disabled" properties are no longer ignored when an item is added through _ajaxCallback 2016-09-29 15:16:28 +02:00
Josh Johnson f386198ac0 Link to repo on logo 2016-09-29 13:55:31 +01:00
Josh Johnson 9d5a6cc41e Keep search callback + improvements but remove ajax search for now 2016-09-27 20:07:32 +01:00
Josh Johnson a990206cef Merge 2016-09-27 16:29:47 +01:00
fabien.leconte e7b22e7f6d - Bogus test on callback existence 2016-09-27 17:18:33 +02:00
Josh Johnson b6fcefb4a5 Only clear choices if select input 2016-09-27 14:13:41 +01:00
Josh Johnson 2b028db271 Refactoring + consistencies 2016-09-27 13:44:35 +01:00
fabien.leconte d5dbd44024 - Better handling of loading state 2016-09-27 11:08:29 +02:00
fabien.leconte e1151d5353 - Added a method to handle loading states
- Added a method to get ajax callback function
 - Refactoring
2016-09-27 10:11:22 +02:00
fabien.leconte e8e4e61893 Draft for ajax search 2016-09-26 18:11:32 +02:00
Josh Johnson 57586c0e3d Update read me + minor tweak 2016-09-26 14:07:09 +01:00
Josh Johnson 76df544677 Merge branch 'pr-item-select-text' of https://github.com/froggiefab/Choices into froggiefab-pr-item-select-text 2016-09-26 14:02:18 +01:00
Josh Johnson 30fd342b8c Redefine input value width on item edit 2016-09-26 13:59:02 +01:00
fabien.leconte 239ae5e869 Remove debugger; 2016-09-26 11:41:05 +02:00
fabien.leconte eaf8f7c4f6 Remove debugger; 2016-09-26 11:39:51 +02:00
fabien.leconte bebbbdac88 Add the ability to pass "Press to select" text through Javascript configuration 2016-09-26 11:36:04 +02:00
Josh Johnson 8ed3fc5277 Housekeeping 2016-09-24 11:07:48 +01:00
Josh Johnson cd0bb9d45f Removing loading text flag regardless of whether there is a placeholder set 2016-09-24 10:52:17 +01:00
Josh Johnson 53f7207257 Ability to set item by disabled choice programatically 2016-09-21 13:32:25 +01:00
Josh Johnson 2c64c84c1d Default value of false for highlight function 2016-09-20 14:17:35 +01:00
Josh Johnson 727d304f49 Run onChange callback when removing highligted items 2016-09-20 12:57:44 +01:00
Josh Johnson ef1e7d23ef Minor tweaks 2016-09-15 21:34:10 +01:00
Josh Johnson a2be7f276a Housekeeping 2016-09-15 21:29:24 +01:00
Josh Johnson c8f12bc942 Deep merge of user config 2016-09-15 21:04:15 +01:00
Josh Johnson b484b6abbd Housekeeping 2016-09-05 22:47:11 +01:00
Josh Johnson 6d1da30f60 Minor refactoring 2016-09-05 22:31:20 +01:00
Josh Johnson d40841d8dd Move to 2 space indentation + editorconfig 2016-09-05 22:04:15 +01:00
Josh Johnson 1f2d685f5e Ensure single select boxes hide after choice selection 2016-09-05 13:48:51 +01:00
Josh Johnson 4179ca038a RTL support + examples 2016-09-04 22:23:20 +01:00
Josh Johnson 349b14386e Resolve IE11 single select box issue by not opening dropdown on focus + use objects instead of switch statements 2016-09-04 15:23:19 +01:00
Josh Johnson b95f9bac5e Force jasmine version to 2.4.1 2016-09-04 14:11:29 +01:00
Josh Johnson ca86265731 Better sort handling + sort tests 2016-09-04 13:44:31 +01:00
Josh Johnson 34bce568a2 Ensure init is returned to false on destroy 2016-09-04 12:27:05 +01:00
Josh Johnson 50396b4374 Ensure this is returned when checking for init 2016-09-04 12:25:43 +01:00
Josh Johnson d60bf1c86c Resolve test errors 2016-09-04 12:10:39 +01:00
Josh Johnson aff165e4a1 Ability to disable sorting of choices/groups 2016-08-31 19:18:46 +01:00
BroiSatse 593d722843 Optional sorting 2016-08-31 14:21:06 +01:00
Josh Johnson 3cd5bf8843 Ability to override choices selector names 2016-08-26 09:02:32 +01:00
Taras Yemtsov 05f9d9f418 variable press-to-select-text
It's useful for message or language changing trough variable.
2016-08-24 14:15:12 +03:00
Taras Yemtsov 63fd4d125b added !default to variables assignment in choices.scss
This allows to change values when including with webpack from node_modules.
Similar technique is used in twitter bootstrap for example.
2016-08-24 13:53:23 +03:00
Josh Johnson 1ba92d81b8 Version 1.1.7 2016-08-23 07:24:55 +01:00
Josh Johnson fb8d5dbe47 Compile one unminified file for devs 2016-08-23 07:24:45 +01:00
Josh Johnson 7207ee543f Remove unneccessary requestAnimation frame polyfill + type check before adding first predefined select option 2016-08-23 07:14:27 +01:00
Josh Johnson 81cef3090c Ensure the state of the dropdown is checked before opening/closing 2016-08-21 20:52:40 +01:00
Josh Johnson 66feebc1ee Ensure placeholder option is respected 2016-08-20 12:39:37 +01:00
Josh Johnson 5e557e61ae Minor css tweaks to buttons + further tests 2016-08-20 11:36:03 +01:00
Josh Johnson aee1732873 Remove button styling on focus + minor tweaks 2016-08-20 11:21:31 +01:00
Josh Johnson 760fbc9f9e Working version with minor bugs 2016-08-19 13:11:15 +01:00
Josh Johnson 5f0545d604 Refactoring 2016-08-19 09:51:44 +01:00
Josh Johnson 9b6cc40f58 Housekeeping 2016-08-18 17:56:27 +01:00
Josh Johnson 5e10f0eda8 Further refactoring 2016-08-18 17:53:46 +01:00
Josh Johnson df8c1bfcb0 Easier to understand focus/blur events 2016-08-18 17:25:14 +01:00
Josh Johnson f3bfa847b1 More spacing around remove buttons 2016-08-17 14:32:02 +01:00
Josh Johnson f201b6cd09 Resolve IE11 bug with documentFragment.children 2016-08-17 14:00:30 +01:00
Josh Johnson 9f0dc2c8dc ESLint entire project 2016-08-14 22:14:37 +01:00
Josh Johnson f300c25465 Favicons + update read me 2016-08-14 17:32:08 +01:00
Josh Johnson 0d66ed2ea2 Housekeeping 2016-08-14 17:19:49 +01:00
Josh Johnson 84bec3804e _canAddItem private function to validate a user can add an item 2016-08-14 17:14:55 +01:00
Josh Johnson 9da6b57b66 Loading placeholder for multiple select when using ajax 2016-08-14 16:19:09 +01:00
Josh Johnson 5d2f4d067d Move item/button/choice actions into functions + focus input on highlight item 2016-08-14 16:10:53 +01:00
Josh Johnson 6e712476bd Ability to specify no result/no choice dropdown text 2016-08-14 15:36:11 +01:00
Josh Johnson 1cacf4798b Add version number to output 2016-08-12 15:51:31 +01:00
Josh Johnson a611117219 Housekeeping 2016-08-08 21:58:15 +01:00
Josh Johnson 4ff68b60dc Split mousedown function into onClick & onMouseDown - maintaining default select actions 2016-08-08 21:46:17 +01:00
Josh Johnson 8cfa698746 Don't append choice list if text input 2016-08-08 17:54:06 +01:00
Josh Johnson fd8b594568 Further aria roles 2016-08-08 17:45:47 +01:00
Josh Johnson 12dd5ef28d Reset search on key up if a user has deleted value 2016-08-08 14:35:14 +01:00
Josh Johnson b17c3a1289 Only search filter for non-text inputs 2016-08-08 14:05:29 +01:00
Josh Johnson 5caa5e4684 Toggable single select drop downs 2016-08-08 13:58:37 +01:00
Josh Johnson 97451458ae Close dropdown for single select boxes without search on blur 2016-08-08 13:32:29 +01:00
Josh Johnson 692788e18d Reinstate single select focus behaviour + allow remove button to focus 2016-08-08 07:40:49 +01:00
Josh Johnson f785360b50 Prevent excessive touchmove variable reassignments 2016-08-07 22:16:05 +01:00
Josh Johnson 998d95a0b2 Version 1.0.56 (Resolve touchstart/move/end bug) 2016-08-07 22:10:21 +01:00
Josh Johnson 6dfeb5a76f CSS tweaks - don't rely on 'pointer-events: none' + only flip if no space in window rather than viewport 2016-08-07 21:05:43 +01:00
Josh Johnson c36e19e20e Fix tap/scroll issues on mobile 2016-08-07 19:03:00 +01:00
Josh Johnson 9e8974adfd Further touchstart tweaks 2016-08-05 20:54:36 +01:00
Josh Johnson 44bc18803e Touchstart dropdown tweak 2016-08-05 20:37:37 +01:00
Josh Johnson e9a0f1c938 Focus input/open dropdown on touchstart for touch devices 2016-08-05 20:28:21 +01:00
Josh Johnson d1a6654623 Hide 'Press enter' dropdown if rejex test fails 2016-08-04 23:02:34 +01:00
Josh Johnson 3a01f2c346 Logo image 2016-08-04 22:25:35 +01:00
Josh Johnson ab8e65689d Press to Enter '...' rather than Add '...' 2016-08-04 22:03:16 +01:00
Josh Johnson 9d1c64171b Kill event listeners when disabling/enabling 2016-08-04 19:30:37 +01:00
Josh Johnson 322f250b7f Highlight/unhighlight callbacks 2016-08-04 13:21:24 +01:00
Josh Johnson 25bc0c87e6 Simplify _createTemplates(); 2016-08-04 07:35:52 +01:00
Josh Johnson 0834c3a7d0 Request animation frame polyfill 2016-08-03 22:00:18 +01:00
Josh Johnson 2cfb347c9f Refactoring + tests + documentation 2016-08-03 21:51:24 +01:00
Josh Johnson b947ef17a7 Find polyfill 2016-08-03 21:50:45 +01:00
Josh Johnson 1d133307bf Update config/public method tests + minor tweaks" 2016-08-03 19:56:57 +01:00
Josh Johnson 6b0ec77a30 Use pixels instead of REMs for units to stop conflicts with other stylesheets 2016-08-03 19:36:37 +01:00
Josh Johnson 5f91165d4a Custom sorting in config + resolve setChoice bug when searching 2016-08-03 14:23:23 +01:00
Josh Johnson 6d9656bed2 Turn of spellcheck, autocomplete and autocorrect from input 2016-08-03 09:23:39 +01:00
Josh Johnson b7484612eb Configurable sorting fields 2016-08-03 07:43:35 +01:00
Josh Johnson 63bef1ee0e Accessibility tweaks 2016-08-02 22:02:29 +01:00
Josh Johnson 5817ce3a0f Enable() method 2016-08-02 21:10:53 +01:00
Josh Johnson e497999841 Set choice groups via setChoice 2016-08-02 21:02:52 +01:00
Josh Johnson 0ce7c574ea Ability to toggle flipped state 2016-08-02 19:39:24 +01:00
Josh Johnson 3585fdfd6a Ensure focus is consisent across single select boxes with/without search 2016-08-02 14:40:36 +01:00
Josh Johnson 6fadbde79e Ensure enter key can also open single select dropdown 2016-08-02 13:48:17 +01:00