More cast and lazy load updates
This commit is contained in:
@@ -190,6 +190,14 @@
|
||||
self.seek = function (position) {
|
||||
self.changeStream(position);
|
||||
};
|
||||
|
||||
self.currentPlaylistIndex = function (i) {
|
||||
self.currentPlaylistIndex(i);
|
||||
};
|
||||
|
||||
self.removeFromPlaylist = function (i) {
|
||||
self.removeFromPlaylist(i);
|
||||
};
|
||||
}
|
||||
|
||||
window.MediaController = new mediaController();
|
||||
|
||||
@@ -34,7 +34,8 @@
|
||||
shape: "square",
|
||||
context: 'music',
|
||||
showTitle: true,
|
||||
showParentTitle: true
|
||||
showParentTitle: true,
|
||||
lazy: true
|
||||
});
|
||||
$('.itemsContainer', page).removeClass('timelineItemsContainer');
|
||||
}
|
||||
@@ -45,7 +46,8 @@
|
||||
context: 'music',
|
||||
showTitle: true,
|
||||
showParentTitle: true,
|
||||
timeline: true
|
||||
timeline: true,
|
||||
lazy: true
|
||||
});
|
||||
$('.itemsContainer', page).addClass('timelineItemsContainer');
|
||||
}
|
||||
|
||||
@@ -65,14 +65,14 @@
|
||||
|
||||
var index = parseInt(this.getAttribute('data-index'));
|
||||
|
||||
MediaPlayer.currentPlaylistIndex(index);
|
||||
MediaController.currentPlaylistIndex(index);
|
||||
reloadPlaylist(page);
|
||||
|
||||
}).on('click', '.lnkRemove', function () {
|
||||
|
||||
var index = parseInt(this.getAttribute('data-index'));
|
||||
|
||||
MediaPlayer.removeFromPlaylist(index);
|
||||
MediaController.removeFromPlaylist(index);
|
||||
reloadPlaylist(page);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user