From: Daniel Calviño Sánchez Date: Sat, 8 Jul 2017 13:56:19 +0000 (+0200) Subject: Enable the toggleSelect extension in multi-select dropdowns X-Git-Tag: v12.0.1RC1~18^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3a660a1b89f4a95abf30331dddf0e1b6f499752d;p=nextcloud-server.git 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 --- diff --git a/apps/files_external/js/settings.js b/apps/files_external/js/settings.js index 4e35ea531eb..112676b8c27 100644 --- a/apps/files_external/js/settings.js +++ b/apps/files_external/js/settings.js @@ -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: { diff --git a/apps/systemtags/js/systemtagsfilelist.js b/apps/systemtags/js/systemtagsfilelist.js index c2a6f09fd9e..a40eb548d9f 100644 --- a/apps/systemtags/js/systemtagsfilelist.js +++ b/apps/systemtags/js/systemtagsfilelist.js @@ -88,6 +88,7 @@ placeholder: t('systemtags', 'Select tags to filter by'), allowClear: false, multiple: true, + toggleSelect: true, separator: ',', query: _.bind(this._queryTagsAutocomplete, this), diff --git a/settings/js/settings.js b/settings/js/settings.js index 5a2ba4bcec7..3a1e67f41cd 100644 --- a/settings/js/settings.js +++ b/settings/js/settings.js @@ -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 = {};