mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-24 03:23:10 +00:00
Fix drag and drop
This commit is contained in:
parent
608fc8364b
commit
36f48cf772
1 changed files with 1 additions and 4 deletions
|
@ -3,9 +3,6 @@ define [
|
|||
], (App) ->
|
||||
App.directive "droppable", () ->
|
||||
return {
|
||||
scope: {
|
||||
onDropCallback: "="
|
||||
}
|
||||
link: (scope, element, attrs) ->
|
||||
scope.$watch attrs.droppable, (droppable) ->
|
||||
if droppable
|
||||
|
@ -13,5 +10,5 @@ define [
|
|||
greedy: true
|
||||
hoverClass: "droppable-hover"
|
||||
accept: attrs.accept
|
||||
drop: scope.onDropCallback
|
||||
drop: scope.$eval(attrs.onDropCallback)
|
||||
}
|
Loading…
Reference in a new issue