@@ -348,13 +348,14 @@ var jqyoui = angular.module('ngDragDrop', []).service('ngDragDropService', ['$ti
348
348
priority : 1 ,
349
349
link : function ( scope , elem , attrs ) {
350
350
var element = $ ( elem ) ;
351
- var dropSettings , killWatcher ;
351
+ var dropSettings , jqyouiOptions , killWatcher ;
352
352
var updateDroppable = function ( newValue , oldValue ) {
353
353
if ( newValue ) {
354
354
dropSettings = scope . $eval ( $ ( element ) . attr ( 'jqyoui-droppable' ) || $ ( element ) . attr ( 'data-jqyoui-droppable' ) ) || { } ;
355
+ jqyouiOptions = scope . $eval ( attrs . jqyouiOptions ) || { } ;
355
356
element
356
357
. droppable ( { disabled : false } )
357
- . droppable ( scope . $eval ( attrs . jqyouiOptions ) || { } )
358
+ . droppable ( jqyouiOptions )
358
359
. droppable ( {
359
360
over : function ( event , ui ) {
360
361
ngDragDropService . callEventCallback ( scope , dropSettings . onOver , event , ui ) ;
@@ -383,7 +384,7 @@ var jqyoui = angular.module('ngDragDrop', []).service('ngDragDropService', ['$ti
383
384
ngDragDropService . callEventCallback ( scope , dropSettings . onDrop , event , ui ) ;
384
385
}
385
386
} ) , function ( ) {
386
- ui . draggable . css ( { left : '' , top : '' } ) ;
387
+ ui . draggable . animate ( { left : '' , top : '' } , jqyouiOptions . revertDuration || 0 ) ;
387
388
} ) ;
388
389
}
389
390
} ) ;
0 commit comments