WordPress.org

Make WordPress Core

Ticket #13495: ie6_shake.patch

File ie6_shake.patch, 984 bytes (added by ocean90, 5 years ago)

after shaking reset CSS display, fix IE 6

  • wp-login.php

     
    121121addLoadEvent = 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();}}}; 
    122122function s(id,pos){g(id).left=pos+'px';} 
    123123function g(id){return document.getElementById(id).style;} 
    124 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){}}} 
     124function 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){}}} 
    125125addLoadEvent(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);}); 
    126126</script> 
    127127<?php