Просмотр исходного кода

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.
Shane Kilkelly 11 лет назад
Родитель
Сommit
c05c5ac7c8

+ 2 - 0
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) ->