
However, saving track's position is broken. Some are still there because of problems I don't know how to solve, e.g. circular dependency between notifications and player. Uses the queue controller for the sidebar queue. Moves loadTrackPosition to the main controller.
14 lines
517 B
JavaScript
14 lines
517 B
JavaScript
angular.module('jamstash.queue.ctrl', [])
|
|
|
|
.controller('QueueCtrl', ['$scope', '$rootScope', '$routeParams', '$location', 'utils', 'globals', 'player',
|
|
function QueueCtrl($scope, $rootScope, $routeParams, $location, utils, globals, player) {
|
|
'use strict';
|
|
$scope.settings = globals.settings;
|
|
$scope.song = $rootScope.queue;
|
|
//angular.copy($rootScope.queue, $scope.song);
|
|
$scope.itemType = 'pl';
|
|
|
|
$scope.playSong = function (loadonly, song) {
|
|
player.playSong(loadonly, song);
|
|
};
|
|
}]);
|