Index: trunk/extensions/WikiSync/WikiSyncPage.php |
— | — | @@ -154,7 +154,9 @@ |
155 | 155 | ), |
156 | 156 | array( '__tag'=>'tr', |
157 | 157 | array( '__tag'=>'td', 'colspan'=>'2', |
158 | | - array( '__tag'=> 'iframe', 'id'=>'wikisync_iframe', 'style' => 'width:100%; height:200px; display:none; ' ) |
| 158 | + // Have to explicitly set empty contents for the iframe, or we'll produce |
| 159 | + // <iframe /> which browsers consider an unclosed tag |
| 160 | + array( '__tag'=> 'iframe', 'id'=>'wikisync_iframe', 'style' => 'width:100%; height:200px; display:none; ', '' ) |
159 | 161 | ) |
160 | 162 | ) |
161 | 163 | ); |
Index: trunk/extensions/WikiSync/WikiSync_utils.js |
— | — | @@ -1,4 +1,4 @@ |
2 | | -var WikiSyncUtils = { |
| 2 | +window.WikiSyncUtils = { |
3 | 3 | // browser-independent addevent function |
4 | 4 | addEvent : function ( obj, type, fn ) { |
5 | 5 | if ( document.getElementById && document.createTextNode ) { |
— | — | @@ -38,7 +38,7 @@ |
39 | 39 | * percents indicator class |
40 | 40 | * @param id - id of table container for percents indicator |
41 | 41 | */ |
42 | | -function WikiSyncPercentsIndicator( id ) { |
| 42 | +window.WikiSyncPercentsIndicator = function( id ) { |
43 | 43 | this.topElement = document.getElementById( id ); |
44 | 44 | var tr1 = this.topElement.firstChild.firstChild; |
45 | 45 | // description line will be stored there |
Index: trunk/extensions/WikiSync/WikiSync.js |
— | — | @@ -33,7 +33,7 @@ |
34 | 34 | * @addtogroup Extensions |
35 | 35 | */ |
36 | 36 | |
37 | | -var WikiSync = { |
| 37 | +window.WikiSync = { |
38 | 38 | |
39 | 39 | _WikiSync : '', // WikiSync context |
40 | 40 | |
— | — | @@ -969,4 +969,4 @@ |
970 | 970 | |
971 | 971 | } |
972 | 972 | |
973 | | -WikiSyncUtils.addEvent(window,"load",WikiSync.onloadHandler); |
| 973 | +WikiSyncUtils.addEvent(window,"load", WikiSync.onloadHandler); |