Skip to content

Commit

Permalink
clear temp list on playlist change
Browse files Browse the repository at this point in the history
  • Loading branch information
takeit committed Apr 1, 2015
1 parent 4c688c6 commit 740b9c1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ angular.module('playlistsApp').controller('PlaylistsController', [
isInLogList = _.some(
Playlist.getLogList(),
{number: number}
);
);

if (!isInLogList) {
Playlist.getArticle(number, language).then(function (article) {
Expand Down Expand Up @@ -306,6 +306,7 @@ angular.module('playlistsApp').controller('PlaylistsController', [
$activityIndicator.stopAnimating();
});

Playlist.clearLogList();
Playlist.setListId(list.id);
$scope.playlistInfo = list;
$scope.playlist.selected.oldLimit = list.maxItems;
Expand Down

0 comments on commit 740b9c1

Please sign in to comment.