Show
Ignore:
Timestamp:
02/21/07 14:54:01 (21 months ago)
Author:
jburke
Message:

References #2366. Converting more tests to use dojo.addOnLoad()

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/0.4/tests/widget/Editor/test_Editor2.html

    r7047 r7394  
    55        <title>Dojo Editor2 Test</title> 
    66        <script type="text/javascript"> 
    7                 var djConfig = { isDebug: true }; 
     7                var djConfig = { 
     8                        isDebug: true, 
     9                        dojoRichTextFrameUrl: "../../../src/widget/templates/richtextframe.html" //for xdomain 
     10                }; 
    811        </script> 
    912 
     
    6063</button> 
    6164<script> 
    62         dojo.event.connect(dojo.byId("onDemandButton"), "onclick", function(){ 
    63                 dojo.widget.createWidget("Editor2",  
    64                         {       shareToolbar: false,  
    65                                 toolbarAlwaysVisible: true, 
    66                                 focusOnLoad: false  
    67                         }, dojo.byId("onDemandEditor")); 
     65        dojo.addOnLoad(function(){ 
     66                dojo.event.connect(dojo.byId("onDemandButton"), "onclick", function(){ 
     67                        dojo.widget.createWidget("Editor2",  
     68                                {       shareToolbar: false,  
     69                                        toolbarAlwaysVisible: true, 
     70                                        focusOnLoad: false  
     71                                }, dojo.byId("onDemandEditor")); 
     72                }); 
    6873        }); 
    6974</script>