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:
parent
415738fee3
commit
0156e509db
@ -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
|
||||
|
File diff suppressed because one or more lines are too long
@ -61,7 +61,7 @@ function wp_default_scripts( &$scripts ) {
|
||||
|
||||
$scripts->add( 'utils', "/wp-admin/js/utils$suffix.js", false, '20101110' );
|
||||
|
||||
$scripts->add( 'common', "/wp-admin/js/common$suffix.js", array('jquery', 'hoverIntent', 'utils'), '20111011', 1 );
|
||||
$scripts->add( 'common', "/wp-admin/js/common$suffix.js", array('jquery', 'hoverIntent', 'utils'), '20111012', 1 );
|
||||
$scripts->add_script_data( 'common', 'commonL10n', array(
|
||||
'warnDelete' => __("You are about to permanently delete the selected items.\n 'Cancel' to stop, 'OK' to delete.")
|
||||
) );
|
||||
|
Loading…
Reference in New Issue
Block a user