summaryrefslogtreecommitdiffstats
path: root/apps/files_external
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2017-07-08 15:56:19 +0200
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2017-07-10 03:38:22 +0200
commit46e813e749d2e07650373734dd09dda7f1d8276d (patch)
treeb3f780d5da3f46edd06ca0f3379a9497dab73376 /apps/files_external
parent1b4e70efe3040e31fe7aa6f4c7c89c5ed3b6509a (diff)
downloadnextcloud-server-46e813e749d2e07650373734dd09dda7f1d8276d.tar.gz
nextcloud-server-46e813e749d2e07650373734dd09dda7f1d8276d.zip
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>
Diffstat (limited to 'apps/files_external')
-rw-r--r--apps/files_external/js/settings.js1
1 files changed, 1 insertions, 0 deletions
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: {