summaryrefslogtreecommitdiffstats
path: root/apps
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
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')
-rw-r--r--apps/files_external/js/settings.js1
-rw-r--r--apps/systemtags/js/systemtagsfilelist.js1
2 files changed, 2 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: {
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),