فهرست منبع

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 12 سال پیش
والد
کامیت
61f2142ad3
1فایلهای تغییر یافته به همراه0 افزوده شده و 7 حذف شده
  1. 0 7
      apps/filebrowser/src/filebrowser/templates/listdir_components.mako

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

@@ -632,13 +632,6 @@ from django.utils.translation import ugettext as _
             actions = $('#ch-dropdown'),
             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
           if (actions.hasClass('open')) {
             actions.removeClass('open');