summaryrefslogtreecommitdiffstats
path: root/apps/files/js
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2015-01-15 18:16:27 +0100
committerVincent Petry <pvince81@owncloud.com>2015-01-15 18:16:27 +0100
commit7f24e77cfcfa90f70505c8556ce059e3befd5be1 (patch)
treebc694c71ac10a18f26a829ef91c33cd5784efdfe /apps/files/js
parentd40301492dc47f8776bd20792a2523637c02e838 (diff)
downloadnextcloud-server-7f24e77cfcfa90f70505c8556ce059e3befd5be1.tar.gz
nextcloud-server-7f24e77cfcfa90f70505c8556ce059e3befd5be1.zip
Disallow ctrl click to select when selection not allowed
Diffstat (limited to 'apps/files/js')
-rw-r--r--apps/files/js/filelist.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index f28c24fda87..c5c665cee77 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -323,7 +323,7 @@
*/
_onClickFile: function(event) {
var $tr = $(event.target).closest('tr');
- if (event.ctrlKey || event.shiftKey) {
+ if (this._allowSelection && (event.ctrlKey || event.shiftKey)) {
event.preventDefault();
if (event.shiftKey) {
var $lastTr = $(this._lastChecked);