瀏覽代碼

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 年之前
父節點
當前提交
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');