From c05c5ac7c8e43e4c806ffcdce5ba62fe425e5319 Mon Sep 17 00:00:00 2001 From: Shane Kilkelly Date: Wed, 28 Oct 2015 12:17:50 +0000 Subject: [PATCH] Clear drag/drop highlight explicitly after the drop has completed. Solves a problem where sometimes the Jquery drag/drop plugin fails to remove the highlight class from drop target. --- .../ide/file-tree/controllers/FileTreeFolderController.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/web/public/coffee/ide/file-tree/controllers/FileTreeFolderController.coffee b/services/web/public/coffee/ide/file-tree/controllers/FileTreeFolderController.coffee index d6bbcc733c..943168090c 100644 --- a/services/web/public/coffee/ide/file-tree/controllers/FileTreeFolderController.coffee +++ b/services/web/public/coffee/ide/file-tree/controllers/FileTreeFolderController.coffee @@ -11,6 +11,8 @@ define [ $scope.onDrop = (events, ui) -> source = $(ui.draggable).scope().entity return if !source? + # clear highlight explicitely + $('.file-tree-inner .droppable-hover').removeClass('droppable-hover') ide.fileTreeManager.moveEntity(source, $scope.entity) $scope.orderByFoldersFirst = (entity) ->