navigation  interaction  search

 other resources

Changeset 404

Show
Ignore:
Timestamp:
05/26/08 10:58:30
Author:
brieb
Message:
  • Added focus to ok button for alert boxes.
Files:

Legend:

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

    r384 r404  
    919919 
    920920function modalAlert(text){ 
     921         
    921922        text=""+text; 
    922923        text.replace("\n","<br />"); 
    923924        text+="<DIV align=\"right\"><button id=\"modalOK\" accesskey=\"o\" type=\"button\" class=\"Buttons\" onclick=\"closeModal()\" style=\"width:75px\"> ok </button></DIV>"; 
    924925        showModal(text,"Alert",250); 
     926 
     927        var okButton = getObjectFromID("modalOK"); 
     928        okButton.focus(); 
    925929} 
    926930 
Copyright © 2006-2007 Kreotek, LLC. All Rights reserved.