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.
This commit is contained in:
Shane Kilkelly 2015-10-28 12:17:50 +00:00
parent 730088b6ab
commit c05c5ac7c8

View file

@ -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) ->