Browse Source

HUE-2379-[fb] Right click clears the selection

Removed logic that deselects items on context click to allow for batch editing of items
Paul McCaughtry 11 năm trước cách đây
mục cha
commit
61f2142ad3

+ 0 - 7
apps/filebrowser/src/filebrowser/templates/listdir_components.mako

@@ -632,13 +632,6 @@ from django.utils.translation import ugettext as _
             actions = $('#ch-dropdown'),
             actions = $('#ch-dropdown'),
             rect = document.querySelector('body').getBoundingClientRect();
             rect = document.querySelector('body').getBoundingClientRect();
 
 
-          // clear out selections
-          ko.utils.arrayFilter(viewModel.files(), function (file) {
-            if (file.selected()) {
-              file.selected(false);
-            }
-          });
-
           // close the actions menu from button area if open
           // close the actions menu from button area if open
           if (actions.hasClass('open')) {
           if (actions.hasClass('open')) {
             actions.removeClass('open');
             actions.removeClass('open');