diff --git a/static/js/pandora/clipsView.js b/static/js/pandora/clipsView.js index 5ae28ac66..f914237cc 100644 --- a/static/js/pandora/clipsView.js +++ b/static/js/pandora/clipsView.js @@ -17,6 +17,13 @@ pandora.ui.clipsView = function(videoRatio) { elements: [ { element: Ox.Bar({size: 24}) + .bindEvent({ + doubleclick: function(e) { + if ($(e.target).is('.OxBar')) { + pandora.$ui.clipList.animate({scrollTop: 0}, 250); + } + } + }) .append( pandora.$ui.sortElement = pandora.ui.sortElement() ) diff --git a/static/js/pandora/navigationView.js b/static/js/pandora/navigationView.js index 8dd2bdf6a..c960071e2 100644 --- a/static/js/pandora/navigationView.js +++ b/static/js/pandora/navigationView.js @@ -19,7 +19,14 @@ pandora.ui.navigationView = function(type, videoRatio) { $toolbar = Ox.Bar({size: 24}) .append( pandora.$ui.sortElement = pandora.ui.sortElement(true) - ), + ) + .bindEvent({ + doubleclick: function(e) { + if ($(e.target).is('.OxBar')) { + $list.animate({scrollTop: 0}, 250); + } + } + }), $list = pandora.ui.clipList(videoRatio) .bindEvent({ diff --git a/static/js/pandora/sectionbar.js b/static/js/pandora/sectionbar.js index 8809559d8..5aaf34e58 100644 --- a/static/js/pandora/sectionbar.js +++ b/static/js/pandora/sectionbar.js @@ -8,10 +8,14 @@ pandora.ui.sectionbar = function(mode) { mode == 'buttons' ? pandora.$ui.sectionButtons = pandora.ui.sectionButtons() : pandora.$ui.sectionSelect = pandora.ui.sectionSelect() - ); - that.toggle = function() { - - }; + ) + .bindEvent({ + doubleclick: function(e) { + if ($(e.target).is('.OxBar')) { + pandora.$ui.folders.animate({scrollTop: 0}, 250); + } + } + }); return that; }; diff --git a/static/js/pandora/toolbar.js b/static/js/pandora/toolbar.js index 448b37ea8..c2f5fee5b 100644 --- a/static/js/pandora/toolbar.js +++ b/static/js/pandora/toolbar.js @@ -45,6 +45,15 @@ pandora.ui.toolbar = function() { }) .hide() ); + (!ui.item ? pandora.$ui.listTitle : pandora.$ui.itemTitle).bindEvent({ + doubleclick: function() { + if (!ui.item) { + pandora.$ui.list && pandora.$ui.list.animate({scrollTop: 0}, 250); + } else { + pandora.$ui.browser.scrollToSelection(); + } + } + }) that.append( pandora.$ui.findElement = pandora.ui.findElement() );