diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-09-11 03:55:52 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-09-11 03:55:52 +0200 |
commit | ea9ebd4826fe9807af5bc17e786b3dc58f163970 (patch) | |
tree | 2894b40614ebe977797cea5745b215e2a2851f61 /js/directive/NewsDroppable.js | |
parent | 594b92f649d8ed8a705f1af23639463078170d46 (diff) |
port to es5 and add es6 shims for object prototypes instead
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) }; |