1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

More cast and lazy load updates

This commit is contained in:
Tim Hobbs 2014-04-09 21:12:04 -07:00
parent df87f66b8d
commit e8084be0db
3 changed files with 14 additions and 4 deletions

View file

@ -190,6 +190,14 @@
self.seek = function (position) { self.seek = function (position) {
self.changeStream(position); self.changeStream(position);
}; };
self.currentPlaylistIndex = function (i) {
self.currentPlaylistIndex(i);
};
self.removeFromPlaylist = function (i) {
self.removeFromPlaylist(i);
};
} }
window.MediaController = new mediaController(); window.MediaController = new mediaController();

View file

@ -34,7 +34,8 @@
shape: "square", shape: "square",
context: 'music', context: 'music',
showTitle: true, showTitle: true,
showParentTitle: true showParentTitle: true,
lazy: true
}); });
$('.itemsContainer', page).removeClass('timelineItemsContainer'); $('.itemsContainer', page).removeClass('timelineItemsContainer');
} }
@ -45,7 +46,8 @@
context: 'music', context: 'music',
showTitle: true, showTitle: true,
showParentTitle: true, showParentTitle: true,
timeline: true timeline: true,
lazy: true
}); });
$('.itemsContainer', page).addClass('timelineItemsContainer'); $('.itemsContainer', page).addClass('timelineItemsContainer');
} }

View file

@ -65,14 +65,14 @@
var index = parseInt(this.getAttribute('data-index')); var index = parseInt(this.getAttribute('data-index'));
MediaPlayer.currentPlaylistIndex(index); MediaController.currentPlaylistIndex(index);
reloadPlaylist(page); reloadPlaylist(page);
}).on('click', '.lnkRemove', function () { }).on('click', '.lnkRemove', function () {
var index = parseInt(this.getAttribute('data-index')); var index = parseInt(this.getAttribute('data-index'));
MediaPlayer.removeFromPlaylist(index); MediaController.removeFromPlaylist(index);
reloadPlaylist(page); reloadPlaylist(page);
}); });