]> source.dussan.org Git - nextcloud-server.git/commitdiff
Enable the toggleSelect extension in multi-select dropdowns 5679/head
authorDaniel Calviño Sánchez <danxuliu@gmail.com>
Sat, 8 Jul 2017 13:56:19 +0000 (15:56 +0200)
committerDaniel Calviño Sánchez <danxuliu@gmail.com>
Tue, 11 Jul 2017 11:02:09 +0000 (13:02 +0200)
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>
apps/files_external/js/settings.js
apps/systemtags/js/systemtagsfilelist.js
settings/js/settings.js

index 4e35ea531eb6fbf864132109b1ab68c2ff956aa4..112676b8c2722a6cca567adf8ab9e4211e2d262b 100644 (file)
@@ -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: {
index c2a6f09fd9e094bfdb608d018760b606f0ee1442..a40eb548d9f94eff7d8525e1afea6282efd0f6e3 100644 (file)
@@ -88,6 +88,7 @@
                                placeholder: t('systemtags', 'Select tags to filter by'),
                                allowClear: false,
                                multiple: true,
+                               toggleSelect: true,
                                separator: ',',
                                query: _.bind(this._queryTagsAutocomplete, this),
 
index 5a2ba4bcec7a447d36a1794ec7899fd7887d9cfd..3a1e67f41cdffa12d2f07a3fbeec5a747ba1e0f3 100644 (file)
@@ -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 = {};