Show
Ignore:
Timestamp:
02/21/07 14:58:53 (23 months ago)
Author:
jburke
Message:

(merge from 0.4 branch) References #2366. Converting more tests to use dojo.addOnLoad()

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/tests/widget/Editor/test_Editor2.html

    r6952 r7395  
    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 
     
    6265</button> 
    6366<script> 
    64         dojo.event.connect(dojo.byId("onDemandButton"), "onclick", function(){ 
    65                 dojo.widget.createWidget("Editor2",  
    66                         {       shareToolbar: false,  
    67                                 toolbarAlwaysVisible: true, 
    68                                 focusOnLoad: false  
    69                         }, dojo.byId("onDemandEditor")); 
     67        dojo.addOnLoad(function(){ 
     68                dojo.event.connect(dojo.byId("onDemandButton"), "onclick", function(){ 
     69                        dojo.widget.createWidget("Editor2",  
     70                                {       shareToolbar: false,  
     71                                        toolbarAlwaysVisible: true, 
     72                                        focusOnLoad: false  
     73                                }, dojo.byId("onDemandEditor")); 
     74                }); 
    7075        }); 
    7176</script>