4.0.2 jukebox updates

This commit is contained in:
Trevor Squillario 2014-11-08 17:22:07 -05:00
parent d90c367a5c
commit daae8cad59
6 changed files with 33 additions and 4 deletions

View file

@ -533,6 +533,17 @@ function AppCtrl($scope, $rootScope, $document, $window, $location, $cookieStore
}
});
};
$rootScope.sendToJukebox = function (action) {
if (globals.settings.Debug) { console.log("SEND JUKEBOX " + action); }
$.ajax({
url: globals.BaseURL() + '/jukeboxControl.view?' + globals.BaseParams() + '&action=' + action,
method: 'GET',
dataType: globals.settings.Protocol,
timeout: globals.settings.Timeout,
success: function (data) {
}
});
};
$scope.updateFavorite = function (item) {
var id = item.id;
var starred = item.starred;