Make WordPress Core

Changeset 14817 for trunk/wp-login.php


Ignore:
Timestamp:
05/23/2010 11:06:44 AM (15 years ago)
Author:
dd32
Message:

Reset position after shaking the login screen, Fixes IE6 hiding the Remember Me & Login buttons. Props ocean90. Fixes #13495

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-login.php

    r14809 r14817  
    125125function s(id,pos){g(id).left=pos+'px';}
    126126function g(id){return document.getElementById(id).style;}
    127 function shake(id,a,d){c=a.shift();s(id,c);if(a.length>0){setTimeout(function(){shake(id,a,d);},d);}else{try{wp_attempt_focus();}catch(e){}}}
     127function shake(id,a,d){c=a.shift();s(id,c);if(a.length>0){setTimeout(function(){shake(id,a,d);},d);}else{try{g(id).position='static';wp_attempt_focus();}catch(e){}}}
    128128addLoadEvent(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);});
    129129</script>
Note: See TracChangeset for help on using the changeset viewer.