mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-25 22:47:59 +01:00
15 lines
No EOL
378 B
CoffeeScript
15 lines
No EOL
378 B
CoffeeScript
window.pfm.preloaders['dashboard'] = [
|
|
'dashboard'
|
|
(dashboard) -> dashboard.refresh(true)
|
|
]
|
|
|
|
angular.module('ponyfm').controller "dashboard", [
|
|
'$scope', 'dashboard'
|
|
($scope, dashboard) ->
|
|
$scope.recentTracks = null
|
|
$scope.popularTracks = null
|
|
|
|
dashboard.refresh().done (res) ->
|
|
$scope.recentTracks = res.recent_tracks
|
|
$scope.popularTracks = res.popular_tracks
|
|
] |