diff --git a/static/js/documentsPanel.js b/static/js/documentsPanel.js index 80857934..4a2d36b3 100644 --- a/static/js/documentsPanel.js +++ b/static/js/documentsPanel.js @@ -393,6 +393,10 @@ pandora.ui.documentsPanel = function(options) { } }); + if (isItemView) { + pandora.$ui.documentsList = $list; + } + that.bindEvent( 'pandora_documentsselection.' + (isItemView ? ui.item.toLowerCase() : ''), selectDocuments diff --git a/static/js/rightPanel.js b/static/js/rightPanel.js index 3f4eb614..67b6a59a 100644 --- a/static/js/rightPanel.js +++ b/static/js/rightPanel.js @@ -41,7 +41,9 @@ pandora.ui.rightPanel = function() { } } else { pandora.$ui.browser.scrollToSelection(); - if (pandora.user.ui.itemView == 'clips') { + if (pandora.user.ui.itemView == 'documents') { + pandora.$ui.documentsList.size(); + } else if (pandora.user.ui.itemView == 'clips') { pandora.$ui.clipList.size(); } else if (pandora.user.ui.itemView == 'timeline') { pandora.$ui.timeline.options({width: data.size});