mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-31 12:51:35 +02: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:
@@ -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) ->
|
||||
|
||||
Reference in New Issue
Block a user