From 72ac5dd8a117a95f9e3f0bfdc33247a27e38c263 Mon Sep 17 00:00:00 2001 From: Pellaeon Lin Date: Sat, 12 Mar 2016 11:29:59 +0800 Subject: [PATCH] Make entire file tr droppable, so that .canDrop will highlight the entire row when drag hover --- apps/files/css/files.css | 3 ++- apps/files/js/filelist.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/files/css/files.css b/apps/files/css/files.css index 9da46aaeed..94eafe2752 100644 --- a/apps/files/css/files.css +++ b/apps/files/css/files.css @@ -829,6 +829,7 @@ html.ie8 #controls .button.new { margin-bottom: 2px; } -.canDrop { +.canDrop, +#filestable tbody tr.canDrop { background-color: rgba(255, 255, 140, 1); } diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index ef29a4844b..6c482e8834 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -1322,7 +1322,7 @@ } // allow dropping on folders if (this._folderDropOptions && mime === 'httpd/unix-directory') { - filenameTd.droppable(this._folderDropOptions); + tr.droppable(this._folderDropOptions); } if (options.hidden) {