mirror of
https://github.com/nextcloud/server.git
synced 2024-08-29 17:54:44 +02:00
Enable the toggleSelect extension in multi-select dropdowns
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>
This commit is contained in:
parent
1b4e70efe3
commit
46e813e749
@ -93,6 +93,7 @@ function addSelect2 ($elements, userListLimit) {
|
||||
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: {
|
||||
|
@ -88,6 +88,7 @@
|
||||
placeholder: t('systemtags', 'Select tags to filter by'),
|
||||
allowClear: false,
|
||||
multiple: true,
|
||||
toggleSelect: true,
|
||||
separator: ',',
|
||||
query: _.bind(this._queryTagsAutocomplete, this),
|
||||
|
||||
|
@ -30,6 +30,7 @@ OC.Settings = _.extend(OC.Settings, {
|
||||
placeholder: t('core', 'Groups'),
|
||||
allowClear: true,
|
||||
multiple: true,
|
||||
toggleSelect: true,
|
||||
separator: '|',
|
||||
query: _.debounce(function(query) {
|
||||
var queryData = {};
|
||||
|
Loading…
Reference in New Issue
Block a user