removed: unused code after playlist filter implementation

This commit is contained in:
Maximilian Walter 2016-06-02 15:59:39 +02:00
parent d735cb6816
commit b22ddcbf5c
2 changed files with 6 additions and 3 deletions

View file

@ -17,7 +17,12 @@
window.pfm.preloaders['playlists-list'] = [
'playlists', '$state'
(playlists, $state) ->
playlists.fetchList($state.params.page, true)
playlists.loadFilters().then(->
playlists.mainQuery.fromFilterString($state.params.filter)
playlists.mainQuery.setPage $state.params.page || 1
playlists.mainQuery.fetch()
)
]
module.exports = angular.module('ponyfm').controller "playlists-list", [

View file

@ -23,8 +23,6 @@ window.pfm.preloaders['playlists'] = [
module.exports = angular.module('ponyfm').controller "playlists", [
'$scope', 'playlists', '$state'
($scope, playlists, $state) ->
# ToDo: Move this function back to preloaders, as soon as I figured out how they work
playlists.loadFilters()
$scope.query = playlists.mainQuery
$scope.filters = playlists.filters