mirror of
https://github.com/Choices-js/Choices.git
synced 2024-05-18 13:36:35 +02:00
Run build
This commit is contained in:
parent
69ee88ae88
commit
e37b051b5a
|
@ -495,12 +495,12 @@ var DEFAULT_CONFIG = exports.DEFAULT_CONFIG = {
|
||||||
noResultsText: 'No results found',
|
noResultsText: 'No results found',
|
||||||
noChoicesText: 'No choices to choose from',
|
noChoicesText: 'No choices to choose from',
|
||||||
itemSelectText: 'Press to select',
|
itemSelectText: 'Press to select',
|
||||||
uniqueItemText: 'Only unique values can be added.',
|
uniqueItemText: 'Only unique values can be added',
|
||||||
addItemText: function addItemText(value) {
|
addItemText: function addItemText(value) {
|
||||||
return 'Press Enter to add <b>"' + (0, _utils.stripHTML)(value) + '"</b>';
|
return 'Press Enter to add <b>"' + (0, _utils.stripHTML)(value) + '"</b>';
|
||||||
},
|
},
|
||||||
maxItemText: function maxItemText(maxItemCount) {
|
maxItemText: function maxItemText(maxItemCount) {
|
||||||
return 'Only ' + maxItemCount + ' values can be added.';
|
return 'Only ' + maxItemCount + ' values can be added';
|
||||||
},
|
},
|
||||||
itemComparer: function itemComparer(choice, item) {
|
itemComparer: function itemComparer(choice, item) {
|
||||||
return choice === item;
|
return choice === item;
|
||||||
|
@ -2635,15 +2635,13 @@ var Choices = function () {
|
||||||
var activeItems = this._store.activeItems || [];
|
var activeItems = this._store.activeItems || [];
|
||||||
this.itemList.clear();
|
this.itemList.clear();
|
||||||
|
|
||||||
if (activeItems.length) {
|
// Create a fragment to store our list items
|
||||||
// Create a fragment to store our list items
|
// (so we don't have to update the DOM for each item)
|
||||||
// (so we don't have to update the DOM for each item)
|
var itemListFragment = this._createItemsFragment(activeItems);
|
||||||
var itemListFragment = this._createItemsFragment(activeItems);
|
|
||||||
|
|
||||||
// If we have items to add, append them
|
// If we have items to add, append them
|
||||||
if (itemListFragment.childNodes) {
|
if (itemListFragment.childNodes) {
|
||||||
this.itemList.append(itemListFragment);
|
this.itemList.append(itemListFragment);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
|
|
File diff suppressed because one or more lines are too long
2
public/assets/scripts/choices.min.js
vendored
2
public/assets/scripts/choices.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue