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

git-svn-id: http://svn.automattic.com/wordpress/trunk@18960 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz 2011-10-13 02:47:00 +00:00
parent 5865cc92fc
commit 6b3786b425
3 changed files with 3 additions and 16 deletions

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

File diff suppressed because one or more lines are too long

View File

@ -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.")
) );