Changeset 10493
- Timestamp:
- 09/13/07 14:14:35 (14 months ago)
- Files:
-
- 1 modified
-
dijit/trunk/demos/mail.html (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dijit/trunk/demos/mail.html
r10473 r10493 39 39 dojo.require("dijit.layout.ContentPane"); 40 40 41 function initWai(){ 42 dijit.wai.setAttr(dojo.body(), "waiRole", "role", "application"); 43 } 44 dojo.addOnLoad(initWai); 45 41 46 var paneId=1; 42 47 … … 58 63 // set progress back to indeterminate. we're cheating, because this 59 64 // 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 } 61 69 }).play(); 62 70 } … … 65 73 // FIXME: can't set a label on an indeterminate progress bar 66 74 // like if(this.indeterminate) { return " connecting."; } 67 return "Fetching: "+(percent*this.maximum) + " of " + this.maximum + " mess gaes.";75 return "Fetching: "+(percent*this.maximum) + " of " + this.maximum + " messages."; 68 76 } 69 77 var fakeDownload = function(){ 78 dojo.byId('fetchMail').style.visibility='visible'; 70 79 numMails = Math.floor(Math.random()*10)+1; 71 80 dijit.byId('fakeFetch').update({ maximum: numMails, progress:0 }); … … 88 97 setTimeout("stopSendBar()", 3000); 89 98 } 90 91 92 99 93 100 </script> 94 101 … … 243 250 <div dojoType="dijit.Toolbar" layoutAlign="top" style="height:25px;"> 244 251 <div id="getMail" dojoType="dijit.form.ComboButton" 245 iconClass="mailIconGetMail" >252 iconClass="mailIconGetMail" optionsTitle="Mail Source Options"> 246 253 <script type="dojo/method" event="onClick"> 247 254 fakeDownload(); … … 286 293 <div dojoType="dijit.layout.ContentPane" layoutAlign="bottom" id="footer" align="left"> 287 294 <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"> 289 296 <div annotate="true" id="fakeFetch" dojoType="dijit.ProgressBar" style="height:15px; width:275px;" indeterminate="true" report="fakeReport"></div> 290 297 </div>