navigation  interaction  search

 other resources

Changeset 406

Show
Ignore:
Timestamp:
05/29/08 11:37:43
Author:
nate
Message:

- Fixed error with modalAlert and IE.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/phpbms/common/javascript/common.js

    r404 r406  
    924924        text+="<DIV align=\"right\"><button id=\"modalOK\" accesskey=\"o\" type=\"button\" class=\"Buttons\" onclick=\"closeModal()\" style=\"width:75px\"> ok </button></DIV>"; 
    925925        showModal(text,"Alert",250); 
    926  
     926         
    927927        var okButton = getObjectFromID("modalOK"); 
    928         okButton.focus(); 
     928        try{ 
     929            okButton.focus(); 
     930        }catch(er){ 
     931            // stupid IE 
     932        }//end try 
    929933} 
    930934 
Copyright © 2006-2007 Kreotek, LLC. All Rights reserved.