Changeset 14447

Show
Ignore:
Timestamp:
07/16/08 06:16:17 (4 months ago)
Author:
dante
Message:

refs #5870 - this example burried in this ticket is useful to people. add test case showing how to prevent form closing the dialog
on submit.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dijit/trunk/tests/test_Dialog.html

    r14279 r14447  
    199199        </div> 
    200200 
     201        <button dojoType="dijit.form.Button" onclick="dijit.byId('preventer').show()">Show Close prevention</button> 
     202         
     203        <div dojoType="dijit.Dialog" id="preventer" title="Confirm Close"> 
     204                I am done entering data:  
     205                <button dojoType="dijit.form.Button" type="submit" onClick="return confirm('Are you sure?')">OK</button> 
     206        </div> 
     207 
    201208        <p>Test refocus="false", click programatic dialog, focus input below, wait. close dialog.</p> 
    202209