mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
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:
parent
730088b6ab
commit
c05c5ac7c8
1 changed files with 2 additions and 0 deletions
|
@ -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) ->
|
||||
|
|
Loading…
Reference in a new issue