mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-25 06:27:59 +01:00
removed: unused code after playlist filter implementation
This commit is contained in:
parent
d735cb6816
commit
b22ddcbf5c
2 changed files with 6 additions and 3 deletions
|
@ -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", [
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue