]> granicus.if.org Git - transmission/commitdiff
fix 'scrollTo is not a function' error reported in IRC.
authorJordan Lee <jordan@transmissionbt.com>
Wed, 12 Oct 2011 00:12:05 +0000 (00:12 +0000)
committerJordan Lee <jordan@transmissionbt.com>
Wed, 12 Oct 2011 00:12:05 +0000 (00:12 +0000)
web/javascript/prefs-dialog.js

index 3d6b847512705bf1231acfc1fddd0a166478b69f..40a6275a597d44b95ae9bc65f7fe99bc91540c5a 100644 (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);