Remove iPad rotation tweak (not needed in iOS 5), see #18863

git-svn-id: https://develop.svn.wordpress.org/trunk@18960 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2011-10-13 02:47:00 +00:00
parent 415738fee3
commit 0156e509db
3 changed files with 3 additions and 16 deletions
+1 -14
View File
@@ -187,7 +187,7 @@ $('.contextual-help-tabs').delegate('a', 'click focus', function(e) {
$(document).ready( function() {
var lastClicked = false, checks, first, last, checked, menu = $('#adminmenu'),
pageInput = $('input.current-page'), currentPage = pageInput.val(), folded, vp = document.getElementById('ipad-viewportmeta');
pageInput = $('input.current-page'), currentPage = pageInput.val(), folded;
// admin menu
$('#collapse-menu', menu).click(function(){
@@ -360,19 +360,6 @@ $(document).ready( function() {
}).triggerHandler('resize');
// iPad orientation scale fix
if ( vp ) {
document.body.addEventListener('gesturestart', function(){
if ( vp.content.indexOf('maximum-scale=1') != -1 )
vp.content = 'width=750px, maximum-scale=5, initial-scale=1';
}, false);
document.body.addEventListener('gestureend', function(){
setTimeout(function(){
if ( vp.content.indexOf('maximum-scale=1') == -1 )
vp.content = 'width=750px, maximum-scale=1, initial-scale=1';
}, 2000);
}, false);
}
});
// internal use