Correct the no-shake iphone check. See #13495

git-svn-id: http://svn.automattic.com/wordpress/trunk@14809 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
dd32 2010-05-23 00:26:13 +00:00
parent 74bccde257
commit be365e349f
1 changed files with 3 additions and 2 deletions

View File

@ -116,7 +116,9 @@ function login_header($title = 'Log In', $message = '', $wp_error = '') {
}
} // End of login_header()
function wp_shake_js() {
if ( !$is_iphone ) :
global $is_iphone;
if ( $is_iphone )
return;
?>
<script type="text/javascript">
addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
@ -126,7 +128,6 @@ function shake(id,a,d){c=a.shift();s(id,c);if(a.length>0){setTimeout(function(){
addLoadEvent(function(){ var p=new Array(15,30,15,0,-15,-30,-15,0);p=p.concat(p.concat(p));var i=document.forms[0].id;g(i).position='relative';shake(i,p,20);});
</script>
<?php
endif;
}
/**