Arend van Beelen
fc44b96e84
Don't rely on :selected, makes Select2 compatible with jQuery builds without Sizzle.
2013-10-14 14:37:41 +02:00
Igor Vaynberg
f1807f2177
Merge pull request #1789 from STAH/unused-vars
...
Remove unused var declarations
2013-10-10 12:59:33 -07:00
stan
2a9154e0c7
Remove unused var declarations
2013-10-10 20:15:26 +02:00
Igor Vaynberg
d1f51910ee
small cleanup in width regex matching. #1557
2013-10-09 08:30:26 -07:00
Igor Vaynberg
58f939ef3b
Merge pull request #1774 from avelis/master
...
Fix for #1518 . Update to select2.js to trigger properly named event.
2013-10-08 20:35:55 -07:00
Igor Vaynberg
2982be4ec9
fixes #1557 ...again...
2013-10-08 20:33:14 -07:00
Igor Vaynberg
0d0882942f
Merge pull request #1639 from francoispluchino/fix-close-focus
...
Fix the focus when list is closed on the mouse click event
2013-10-08 20:25:21 -07:00
Igor Vaynberg
a3e188afe1
Merge pull request #1772 from KyKyPy3/master
...
Fix selection first element from "postprocessResults"
2013-10-08 20:21:47 -07:00
Igor Vaynberg
51ee7f8dc4
Merge pull request #1777 from yonjah/master
...
#1776 and #1722 dropdown position issue
2013-10-08 20:13:05 -07:00
Yoni Jah
a65a3ce038
#1776 and #1722 dropdown position issue
2013-10-08 12:37:37 +03:00
Andrew Velis
204d4a276e
Update to unselect method to support "select2-removing" triggers.
...
The goal here is send off a triggered event to a subscriber that an
element is going to be removed. It hasn't removed yet but would be
after the event fires. I have also added logic to determine if a
subscriber has prevented default. This will prove useful in the future
if a subscriber needs to extend the functionality for other usages.
2013-10-07 20:47:12 -07:00
Andrew Velis
f39ab3080e
Fix for #1518 . Update to select2.js to trigger properly named event.
...
By the documentation the event that should be fired is "select2-removed" however the event that actually gets fired is called "removed"
2013-10-06 21:27:40 -07:00
Efremenko Roman
9266d7cf55
Fix selection first element from "postprocessResults" - exclude selected elements from highlightable elements
2013-10-06 17:02:03 +04:00
Igor Vaynberg
435b2581ff
Merge pull request #1768 from kabitakis/master
...
corrections for the greek (el) locale file
2013-10-03 10:52:43 -07:00
Nikos Kampitakis
da0aecbdd1
corrections for the greek (el) locale file
2013-10-03 14:12:30 +03:00
Igor Vaynberg
f910bd42db
Merge pull request #1764 from tjnurmin/patch-1
...
Update select2_locale_fi.js
2013-10-01 12:21:01 -07:00
Tapio Nurminen
037c139b0c
Update select2_locale_fi.js
...
fixed typo in Finnish translation
2013-10-01 22:12:17 +03:00
Igor Vaynberg
e78cf7759e
Merge pull request #1729 from rschmitty/master
...
Update select2-bootstrap.css
2013-09-17 15:49:56 -07:00
Rick Schmitty
17f9b8ea0b
Update select2-bootstrap.css
...
Added Bootstrap Validation states for warning, error, info, and success
2013-09-17 17:56:09 -04:00
Igor Vaynberg
9e7dde66b7
Merge pull request #1722 from yonjah/master
...
dropdown repostion fix when previous postion changes container position
2013-09-17 07:22:48 -07:00
Igor Vaynberg
057cf7e71b
Merge pull request #1717 from ProLoser/patch-1
...
Fixes styling in bootstrap environment
2013-09-17 07:16:43 -07:00
Igor Vaynberg
c73261be21
Merge pull request #1723 from AlexanderZaytsev/master
...
Use more specific selector for finding options of a select
2013-09-17 07:14:50 -07:00
Igor Vaynberg
84ac8301db
modified version identifiers in descriptors for release 3.4.3
2013-09-17 06:47:14 -07:00
Alexander Zaytsev
67699746b4
Use more specific selector for finding options of a select
2013-09-16 21:54:29 +02:00
Yoni Jah
e6840fdc37
dropdown repostion fix when previous postion changes container position
2013-09-15 10:25:35 +03:00
Dean Sofer
4d749a7578
Fixes styling in bootstrap environment
...
Fixes #1588 thanks to @smajl
2013-09-14 23:17:20 -07:00
Igor Vaynberg
0ab50cc329
Merge pull request #1706 from moneybird/master
...
Remove negative selector for `.select2-selected`
2013-09-11 08:17:41 -07:00
Edwin Vlieg
ca9b55fadb
Remove negative selector for .select2-selected
...
This broke scroll behaviour when displaying the selected items in the
dropdown.
2013-09-11 12:58:05 +02:00
Igor Vaynberg
b4083330b3
Merge pull request #1694 from cnanney/patch-1
...
Fix focus on select
2013-09-06 22:36:47 -07:00
cnanney
3b54482522
Fix focus on select
...
Focus should go back to select2-focusser, not select2-choice.
2013-09-06 18:57:41 -05:00
Igor Vaynberg
49c8b6cf50
Merge pull request #1690 from evangun/initSelectionFix
...
Edit the default initSelection function to pass all tag properties
2013-09-06 08:48:29 -07:00
evangun
cfec9c6434
Edit the default initSelection function to pass all tag properties
...
The function will now pass all properties of the objects passed as tags to the constructor, not just the "id" and "text" properties. Because a tag is not always just an id and a text, just like when you provide the items with the "data" object instead.
This makes sure these properties are always available at the runtime of formatSelection() or formatResult(), which is not currently the case when the field is repopulated on a triggered "change" event.
My code looks like this :
$el.select2({
...,
tags: [{
//id
id: 1,
//the string that will matched against the user's query
text: 'martin smith greatmartin@provider.com'
//the label of the item that will be shown if this tag is selected
label: 'M. Smith',
}],
formatSelection: function(object, container){
return object.label || object.text;
},
//right now I have to override the default function:
initSelection: function(){...}
});
2013-09-05 18:18:50 +02:00
Igor Vaynberg
fb8bf6d51d
do not leak click events. fixes #1622
2013-09-03 21:16:16 -07:00
Igor Vaynberg
e09292d800
remove trailing comma. fixes #1633
2013-09-03 20:51:23 -07:00
Igor Vaynberg
7d60f619ce
Merge pull request #1211 from jhinch/pixel-rounding-problems
...
Search width inconsistencies in different browsers due to fractional pixels
2013-09-03 20:48:35 -07:00
Igor Vaynberg
2d401b19ce
Merge pull request #1684 from jdecuyper/feature-avoid-removal-of-locked-options
...
Avoid locked options to be selected and deleted.
2013-09-03 20:35:49 -07:00
jdecuyper
02dea18dc9
Avoid locked options to be selected and deleted.
2013-09-03 17:20:35 -05:00
Igor Vaynberg
418a659adb
Merge pull request #1678 from jdecuyper/feature-remove-duplicated-option
...
Remove duplicated options from multi-valued select boxes.
2013-08-31 19:20:52 -07:00
jdecuyper
a380ebabd5
Remove duplicated options from multi-valued select boxes.
2013-08-30 18:16:41 -05:00
Igor Vaynberg
856af7966f
Merge pull request #1675 from duncansmart/clearing-event
...
Added `select2-clearing` event
2013-08-30 14:01:59 -07:00
Duncan Smart
edc0d86fd2
Added select2-clearing
event
...
that allows clearing selection to be canceled.
2013-08-30 21:35:01 +01:00
Igor Vaynberg
ca7550bf4d
Revert "Fixed Tab key not respecting opts.selectOnBlur" breaks tab key. fixes #1646 .
...
This reverts commit 6eb74930d5
.
2013-08-30 08:55:16 -07:00
Igor Vaynberg
9380a0678c
Merge pull request #1628 from realityking/css
...
Cleanup CSS
2013-08-28 23:29:45 -07:00
Igor Vaynberg
92f173c1ab
Merge pull request #1667 from duckinator/master
...
Clicking outside of dropdown should remove select2-container-active class.
2013-08-28 23:11:37 -07:00
markwellna
3c2d7f7310
Clicking outside of dropdown removes select2-container-active class.
...
Closes #1661 .
2013-08-28 13:05:41 -04:00
François Pluchino
9bc68f089e
Fix the focus when list is closed on the mouse click event
2013-08-21 12:16:50 +02:00
Rouven Weßling
299f87440e
Remove duplicate property.
2013-08-18 14:35:04 +02:00
Rouven Weßling
e7649880cb
Remove -khtml-user-select. It's not supported by KHTML anyways and their marketshare is incredibly minor.
2013-08-18 14:35:04 +02:00
Rouven Weßling
488526ccf5
Remove -o-linear-gradient used by Opera 11.1 - 12.0. These versions are now very rarely used.
2013-08-18 14:35:01 +02:00
Rouven Weßling
bba1eb04c7
Remove -ms-linear-gradient that was only used by IE 10 preview releases.
2013-08-18 14:34:58 +02:00