]> granicus.if.org Git - transmission/commitdiff
fix resize issue in web client's prefs dialog.
authorJordan Lee <jordan@transmissionbt.com>
Wed, 14 Sep 2011 15:38:54 +0000 (15:38 +0000)
committerJordan Lee <jordan@transmissionbt.com>
Wed, 14 Sep 2011 15:38:54 +0000 (15:38 +0000)
web/javascript/prefs-dialog.js

index 22fca01675f122055a49eacc629bd458e7a73f47..8d52f48151074f2b61f121129eafb753909e88bb 100644 (file)
@@ -215,13 +215,6 @@ function PrefsDialog(remote) {
                     break;
             }
         }
-
-        // handle orientation changes...
-        var supportsOrientationChange = 'onorientationchange' in window,
-            orientationEvent = supportsOrientationChange ? 'orientationchange' : 'resize';
-        $('body').bind(orientationEvent, function() {
-            data.elements.root.dialog('option',getDefaultMobileOptions());
-        });
     },
 
     getValues = function()