Changeset 10493

Show
Ignore:
Timestamp:
09/13/07 14:14:35 (14 months ago)
Author:
becky
Message:

refs #4412 work on mail demo a11y; Hide fetch mail progress bar when not in use so it is not in the tab order. Add application role to body tag. Add optionsTitle to getMail combobutton

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dijit/trunk/demos/mail.html

    r10473 r10493  
    3939                dojo.require("dijit.layout.ContentPane"); 
    4040 
     41                function initWai(){ 
     42                        dijit.wai.setAttr(dojo.body(), "waiRole", "role", "application"); 
     43                } 
     44                dojo.addOnLoad(initWai); 
     45                 
    4146                var paneId=1; 
    4247 
     
    5863                                        // set progress back to indeterminate. we're cheating, because this 
    5964                                        // doesn't actually have any data to "progress" 
    60                                         onEnd: function(){ dijit.byId('fakeFetch').update({ indeterminate: true }) } 
     65                                        onEnd: function(){  
     66                                                dijit.byId('fakeFetch').update({ indeterminate: true }); 
     67                                                dojo.byId('fetchMail').style.visibility='hidden'; // remove progress bar from tab order 
     68                                        } 
    6169                                }).play(); 
    6270                        } 
     
    6573                        // FIXME: can't set a label on an indeterminate progress bar 
    6674                        // like if(this.indeterminate) { return " connecting."; } 
    67                         return "Fetching: "+(percent*this.maximum) + " of " + this.maximum + " messgaes."; 
     75                        return "Fetching: "+(percent*this.maximum) + " of " + this.maximum + " messages."; 
    6876                } 
    6977                var fakeDownload = function(){ 
     78                        dojo.byId('fetchMail').style.visibility='visible'; 
    7079                        numMails = Math.floor(Math.random()*10)+1; 
    7180                        dijit.byId('fakeFetch').update({ maximum: numMails, progress:0 }); 
     
    8897                        setTimeout("stopSendBar()", 3000); 
    8998                } 
    90                  
    91  
    92                  
     99 
    93100        </script> 
    94101 
     
    243250                <div dojoType="dijit.Toolbar" layoutAlign="top" style="height:25px;"> 
    244251                        <div id="getMail" dojoType="dijit.form.ComboButton" 
    245                                 iconClass="mailIconGetMail"> 
     252                                iconClass="mailIconGetMail" optionsTitle="Mail Source Options"> 
    246253                                <script type="dojo/method" event="onClick"> 
    247254                                        fakeDownload(); 
     
    286293                <div dojoType="dijit.layout.ContentPane" layoutAlign="bottom" id="footer" align="left"> 
    287294                        <span style="float:right;">DojoMail v0.9b (demo only)</span> 
    288                         <div id="fetchMail" style="opacity:0;"> 
     295                        <div id="fetchMail" style="opacity:0;visibility:hidden"> 
    289296                        <div annotate="true" id="fakeFetch" dojoType="dijit.ProgressBar" style="height:15px; width:275px;" indeterminate="true" report="fakeReport"></div> 
    290297                        </div>