Skip to content

Commit

Permalink
app.js improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
takeit committed Feb 23, 2015
1 parent 73aab44 commit bcb3259
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,13 @@ app.controller('FeaturedController', [
$scope.sortableConfig = {
group: 'articles',
animation: 150,
onAdd: function (evt/**Event*/){
var item = evt.model; // the current dragged article
onEnd: function (evt/**Event*/){
/*var item = evt.model; // the current dragged article
var number = item.number;
// TODO dont add article if its already in the playlist
var result = _.some($scope.$parent.featuredArticles, {'number': number.toString()});
var result = _.some($scope.$parent.featuredArticles, {'number': number.toString()});*/
console.log(evt);

}
};
Expand Down

0 comments on commit bcb3259

Please sign in to comment.