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

git-svn-id: http://svn.automattic.com/wordpress/trunk@14806 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2010-05-22 21:31:14 +00:00
parent c4e2c65edb
commit 9016d1ff10

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;
}
/**