Index: trunk/extensions/OpenID/README.OpenID-mediawiki-extension |
— | — | @@ -1,5 +1,5 @@ |
2 | 2 | MediaWiki OpenID extension README.OpenID-mediawiki-extension file |
3 | | -version 0.946-beta 20120201 |
| 3 | +version 0.947-beta 20120205 |
4 | 4 | Homepage and manual http://www.mediawiki.org/wiki/Extension:OpenID |
5 | 5 | |
6 | 6 | Please check OpenID.setup.php for the current program version number |
— | — | @@ -466,6 +466,7 @@ |
467 | 467 | into that account now |
468 | 468 | |
469 | 469 | == CHANGES == |
| 470 | +* 0.947 using jQuery closure for redirect |
470 | 471 | * 0.946 fixed the problem of broken automatic redirect to OpenID provider login |
471 | 472 | replaced hookEvent() by jQuery( document ).ready( submitOpenIDForm ) |
472 | 473 | * 0.945 improved Makefile: added the SHA1 checksum of php-openid library.tar.gz |
Index: trunk/extensions/OpenID/SpecialOpenID.body.php |
— | — | @@ -291,7 +291,9 @@ |
292 | 292 | } else { |
293 | 293 | $wgOut->addWikiMsg( 'openidautosubmit' ); |
294 | 294 | $wgOut->addHTML( $form_html ); |
295 | | - $wgOut->addInlineScript( "function submitOpenIDForm() {\n document.getElementById(\"" . $form_id . "\").submit()\n};\njQuery( document ).ready( submitOpenIDForm );\n"); |
| 295 | + $wgOut->addInlineScript( |
| 296 | + "jQuery( document ).ready( function(){ jQuery( \"#" . $form_id . "\" ).submit() } );" |
| 297 | + ); |
296 | 298 | } |
297 | 299 | } |
298 | 300 | |
Index: trunk/extensions/OpenID/OpenID.php |
— | — | @@ -27,7 +27,7 @@ |
28 | 28 | exit( 1 ); |
29 | 29 | } |
30 | 30 | |
31 | | -define( 'MEDIAWIKI_OPENID_VERSION', '0.946-beta 20120201' ); |
| 31 | +define( 'MEDIAWIKI_OPENID_VERSION', '0.947-beta 20120205' ); |
32 | 32 | |
33 | 33 | $path = dirname( __FILE__ ); |
34 | 34 | set_include_path( implode( PATH_SEPARATOR, array( $path ) ) . PATH_SEPARATOR . get_include_path() ); |