mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
Fix drag and drop
This commit is contained in:
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user