includes/clientside/static/messagebox.js
changeset 694 43367c66d869
parent 677 2a263b598a2b
child 699 c7d737202d59
equal deleted inserted replaced
693:f21aa64d050a 694:43367c66d869
    48   if ( aclDisableTransitionFX )
    48   if ( aclDisableTransitionFX )
    49   {
    49   {
    50     document.getElementById('specialLayer_darkener').style.zIndex = '5';
    50     document.getElementById('specialLayer_darkener').style.zIndex = '5';
    51   }
    51   }
    52   var master_div = document.createElement('div');
    52   var master_div = document.createElement('div');
    53   master_div.style.zIndex = String(getHighestZ() + 5);
    53   master_div.style.zIndex = getHighestZ() + 1;
    54   var mydiv = document.createElement('div');
    54   var mydiv = document.createElement('div');
    55   mydiv.style.height = '200px';
    55   mydiv.style.height = '200px';
    56   w = getWidth();
    56   w = getWidth();
    57   h = getHeight();
    57   h = getHeight();
    58   if ( aclDisableTransitionFX )
    58   if ( aclDisableTransitionFX )
   545             }
   545             }
   546             return false;
   546             return false;
   547           }
   547           }
   548           parent.appendChild(button.input);
   548           parent.appendChild(button.input);
   549         }
   549         }
   550         if ( parms.buttons[0] )
   550         // don't focus this in opera - it looks kinda ugly
       
   551         if ( parms.buttons[0] && !window.opera )
   551         {
   552         {
   552           var timeout = ( aclDisableTransitionFX ) ? 10 : 1000;
   553           var timeout = ( aclDisableTransitionFX ) ? 10 : 1000;
   553           setTimeout(function()
   554           setTimeout(function()
   554             {
   555             {
   555               parms.buttons[0].input.focus();
   556               parms.buttons[0].input.focus();