mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-04 06:37:06 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user