fix 'scrollTo is not a function' error reported in IRC.

This commit is contained in:
Jordan Lee 2011-10-12 00:12:05 +00:00
parent dab5fe6bfd
commit 854c5542eb
1 changed files with 3 additions and 2 deletions

View File

@ -235,7 +235,8 @@ function PrefsDialog(remote) {
onDialogClosed = function()
{
window.scrollTo(0,1);
transmission.hideMobileAddressbar();
$(data.dialog).trigger('closed', getValues());
};
@ -290,7 +291,7 @@ function PrefsDialog(remote) {
this.show = function ()
{
window.scrollTo(0,1);
transmission.hideMobileAddressbar();
setBlocklistButtonEnabled(true);
data.remote.checkPort(onPortChecked,this);