The toggleSelect extension for Select2 makes possible to unselect items
in a multi-select dropdown by clicking on them; this behaviour should be
enabled in all the multi-select dropdowns used in the server.
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
placeholder: t('files_external', 'All users. Type to select user or group.'),
allowClear: true,
multiple: true,
+ toggleSelect: true,
dropdownCssClass: 'files-external-select2',
//minimumInputLength: 1,
ajax: {
placeholder: t('systemtags', 'Select tags to filter by'),
allowClear: false,
multiple: true,
+ toggleSelect: true,
separator: ',',
query: _.bind(this._queryTagsAutocomplete, this),
placeholder: t('core', 'Groups'),
allowClear: true,
multiple: true,
+ toggleSelect: true,
separator: '|',
query: _.debounce(function(query) {
var queryData = {};