Index: trunk/extensions/UsabilityInitiative/OptIn/SpecialOptIn.php |
— | — | @@ -117,7 +117,7 @@ |
118 | 118 | $url = $this->getTitle()->getLinkUrl(); |
119 | 119 | $wgOut->addHTML( Xml::tags( 'script', |
120 | 120 | array( 'type' => $wgJsMimeType ), |
121 | | - "jQuery(document).ready(function() { jQuery.post( \"$url\", optInGetPOSTData() ); } );" |
| 121 | + 'js2AddOnloadHook( function() { $j.post( "' . $url . '", optInGetPOSTData() ); } );' |
122 | 122 | ) ); |
123 | 123 | } else if ( $wgRequest->getVal( 'opt' ) == 'feedback' ) { |
124 | 124 | if ( $wgRequest->wasPosted() ) { |