Merge pull request #1014 from sjschukin/patch-1
.select2("data", null) causes an error
This commit is contained in:
commit
f8dda91171
@ -3233,7 +3233,7 @@ the specific language governing permissions and limitations under the Apache Lic
|
|||||||
minimumInputLength: 0,
|
minimumInputLength: 0,
|
||||||
maximumInputLength: null,
|
maximumInputLength: null,
|
||||||
maximumSelectionSize: 0,
|
maximumSelectionSize: 0,
|
||||||
id: function (e) { return e.id; },
|
id: function (e) { return e == undefined ? null : e.id; },
|
||||||
matcher: function(term, text) {
|
matcher: function(term, text) {
|
||||||
return stripDiacritics(''+text).toUpperCase().indexOf(stripDiacritics(''+term).toUpperCase()) >= 0;
|
return stripDiacritics(''+text).toUpperCase().indexOf(stripDiacritics(''+term).toUpperCase()) >= 0;
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user