From 908caf57f678456f05d8d7573a7fcc338cbb6ab8 Mon Sep 17 00:00:00 2001 From: rolux Date: Tue, 5 Mar 2013 15:17:10 +0000 Subject: [PATCH] when switchin sections in help/api, scroll up --- static/js/pandora/apiDialog.js | 1 + static/js/pandora/helpDialog.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/static/js/pandora/apiDialog.js b/static/js/pandora/apiDialog.js index 7fdda865..6b8f063f 100644 --- a/static/js/pandora/apiDialog.js +++ b/static/js/pandora/apiDialog.js @@ -163,6 +163,7 @@ pandora.ui.apiDialog = function() { } else { $text.html(overview); } + $text.scrollTop(0); return that; } diff --git a/static/js/pandora/helpDialog.js b/static/js/pandora/helpDialog.js index ebbcea57..ed645c4e 100644 --- a/static/js/pandora/helpDialog.js +++ b/static/js/pandora/helpDialog.js @@ -140,7 +140,7 @@ pandora.ui.helpDialog = function() { }); that.select = function(id) { - $text.html(text[id]); + $text.html(text[id]).scrollTop(0); $text.find('img') .css({ width: '100%',