mirror of
https://github.com/danbee/mpd-client
synced 2025-03-04 08:39:09 +00:00
18 lines
370 B
JavaScript
18 lines
370 B
JavaScript
var QueueSong = can.Model({
|
|
findAll: 'GET /api/queue'
|
|
}, {});
|
|
|
|
QueueSong.findAll({}, function(songs) {
|
|
$('#queue').html(can.view('queueTemplate',
|
|
{ songs: songs }));
|
|
}, function(xhr) {
|
|
|
|
});
|
|
|
|
$(document).ready(function() {
|
|
$('#transport').html(can.view('transportTemplate'));
|
|
|
|
$('#controls button').on('click', function(e) {
|
|
});
|
|
});
|