Index: trunk/extensions/MetavidWiki/skins/mv_search.js |
— | — | @@ -1,4 +1,4 @@ |
2 | | -mwAddOnloadHook( mv_pre_setup_search); |
| 2 | +js2AddOnloadHook( mv_pre_setup_search); |
3 | 3 | var mvSearchSetupFlag =false; |
4 | 4 | var maxFilters = 8; |
5 | 5 | var mv_search_action=''; |
Index: trunk/extensions/MetavidWiki/skins/mv_allpages.js |
— | — | @@ -1,6 +1,5 @@ |
2 | 2 | //javascript for all pages (adds auto_complete for search, and our linkback logo, and re-writes mvd links) |
3 | 3 | _global = this; |
4 | | -mwAddOnloadHook(mv_setup_allpage); |
5 | 4 | var mv_setup_allpage_flag=false; |
6 | 5 | if( typeof wgServer!='undefined' && typeof wgScript != 'undefined'){ |
7 | 6 | var base_roe_url = wgServer + wgScript + '?title=Special:MvExportStream&feed_format=roe&stream_name='; |
— | — | @@ -15,7 +14,7 @@ |
16 | 15 | var wgScriptPath = '/w'; |
17 | 16 | |
18 | 17 | var gMvd={}; |
19 | | -function mv_setup_allpage(){ |
| 18 | +js2AddOnloadHook(function(){ |
20 | 19 | js_log("mv embed done loading now setup 'all page'"); |
21 | 20 | //make sure we have jQuery and any base required libs: |
22 | 21 | mvJsLoader.jQueryCheck(function(){ |
— | — | @@ -33,7 +32,7 @@ |
34 | 33 | } |
35 | 34 | }); |
36 | 35 | }); |
37 | | -} |
| 36 | +}); |
38 | 37 | function mv_do_sequence_edit_swap(mode){ |
39 | 38 | if(mode=='text'){ |
40 | 39 | $j('#seq_edit_container,#swich_seq_text').hide(); |
Index: trunk/extensions/MetavidWiki/skins/mv_stream.js |
— | — | @@ -49,9 +49,9 @@ |
50 | 50 | |
51 | 51 | //@@todo context sensitive init scripts |
52 | 52 | //init the interface on page load |
53 | | -mwAddOnloadHook(mv_load_interface_libs); |
| 53 | +js2AddOnloadHook(mv_load_interface_libs); |
54 | 54 | |
55 | | -function mv_load_interface_libs(){ |
| 55 | +js2AddOnloadHook( function(){ |
56 | 56 | js_log('f:mv_load_interface_libs'); |
57 | 57 | //make sure the mv_embed stuff is loaded |
58 | 58 | mvJsLoader.jQueryCheck(function(){ |
— | — | @@ -70,7 +70,7 @@ |
71 | 71 | mv_stream_interface.init(); |
72 | 72 | }); |
73 | 73 | }); |
74 | | -} |
| 74 | +}); |
75 | 75 | /* |
76 | 76 | * init_interface (on DOM ready) |
77 | 77 | * |