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
+8
View File
@@ -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();
+4 -2
View File
@@ -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');
}
+2 -2
View File
@@ -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);
});