diff --git a/demos/mail.html b/demos/mail.html index e4680cef0..a91675ec6 100644 --- a/demos/mail.html +++ b/demos/mail.html @@ -38,6 +38,11 @@ dojo.require("dijit.layout.TabContainer"); dojo.require("dijit.layout.ContentPane"); + function initWai(){ + dijit.wai.setAttr(dojo.body(), "waiRole", "role", "application"); + } + dojo.addOnLoad(initWai); + var paneId=1; // for "new message" tab closing @@ -57,16 +62,20 @@ dojo.fadeOut({ node: 'fetchMail', duration:800, // set progress back to indeterminate. we're cheating, because this // doesn't actually have any data to "progress" - onEnd: function(){ dijit.byId('fakeFetch').update({ indeterminate: true }) } + onEnd: function(){ + dijit.byId('fakeFetch').update({ indeterminate: true }); + dojo.byId('fetchMail').style.visibility='hidden'; // remove progress bar from tab order + } }).play(); } } var fakeReport = function(percent){ // FIXME: can't set a label on an indeterminate progress bar // like if(this.indeterminate) { return " connecting."; } - return "Fetching: "+(percent*this.maximum) + " of " + this.maximum + " messgaes."; + return "Fetching: "+(percent*this.maximum) + " of " + this.maximum + " messages."; } var fakeDownload = function(){ + dojo.byId('fetchMail').style.visibility='visible'; numMails = Math.floor(Math.random()*10)+1; dijit.byId('fakeFetch').update({ maximum: numMails, progress:0 }); dojo.fadeIn({ node: 'fetchMail', duration:300 }).play(); @@ -87,9 +96,7 @@ dijit.byId('sendDialog').show(); setTimeout("stopSendBar()", 3000); } - -