Skip to content

Commit

Permalink
added logic to disable pagination on reload of queue if not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
Blake Walters committed Sep 28, 2009
1 parent 3b76250 commit 659c516
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions webroot/js/cpb/modules/queue.js
Expand Up @@ -131,6 +131,11 @@ CPB.queue.view.paginate = function(data) {

CPB.queue.view.reload = function(data) {
CPB.media.reload(CPB.queue.view.partial.entries(data.posts), '#Queue div.MediaContainer', '#Queue div.MediaContainer ul', CPB.queue.paginateNextBindPoint, CPB.queue.paginatePreviousBindPoint, CPB.queue.settings.visible, CPB.queue.settings.height, CPB.queue.settings.offset, function() {
if($('#Queue div.MediaContainer ul li').size() <= CPB.queue.settings.visible) {
$('#Queue .Pagination a').addClass('disabled');
} else {
$('#Queue .Pagination .Next a').removeClass('disabled');
}
var videos = CPB.queue.createPlayList();
setVideoData(videos);
CPB.queue.bindLinksToPlayer();
Expand Down

0 comments on commit 659c516

Please sign in to comment.