Shake not your iphone for an incorrect password. Fixes #13495

git-svn-id: https://develop.svn.wordpress.org/trunk@14806 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood 2010-05-22 21:31:14 +00:00
parent cd7f4dfaa7
commit cfc03c26e7
1 changed files with 2 additions and 0 deletions

View File

@ -116,6 +116,7 @@ function login_header($title = 'Log In', $message = '', $wp_error = '') {
}
} // End of login_header()
function wp_shake_js() {
if ( !$is_iphone ) :
?>
<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();}}};
@ -125,6 +126,7 @@ 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;
}
/**