From 95ae2f602e7087e33f7735f10cfefd10e7e0ec6b Mon Sep 17 00:00:00 2001 From: Becky Gibson Date: Thu, 13 Sep 2007 21:14:35 +0000 Subject: [PATCH] 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 --- demos/mail.html | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) 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); } - -