diff options
Diffstat (limited to 'js/directive/NewsDroppable.js')
-rw-r--r-- | js/directive/NewsDroppable.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/js/directive/NewsDroppable.js b/js/directive/NewsDroppable.js index a68f26444..2808dc6a4 100644 --- a/js/directive/NewsDroppable.js +++ b/js/directive/NewsDroppable.js @@ -7,19 +7,19 @@ * @author Bernhard Posselt <dev@bernhard-posselt.com> * @copyright Bernhard Posselt 2014 */ -app.directive('newsDroppable', ($rootScope) => { +app.directive('newsDroppable', function ($rootScope) { 'use strict'; - return (scope, elem, attr) => { - let details = { + return function (scope, elem, attr) { + var details = { accept: '.feed', hoverClass: 'drag-and-drop', greedy: true, - drop: (event, ui) => { + drop: function (event, ui) { $('.drag-and-drop').removeClass('drag-and-drop'); - let data = { + var data = { folderId: parseInt(elem.data('id'), 10), feedId: parseInt($(ui.draggable).data('id'), 10) }; |