https://www.mediawiki.org/wiki/Special:Code/MediaWiki/110537
Revision: 110537
Author: wikinaut
Date: 2012-02-02 00:09:38 +0000 (Thu, 02 Feb 2012)
Log Message:
-----------
fixed the problem of broken automatic redirect to OpenID provider login page,
i.e. automatic authentication.\nSince a while, users of the OpenID extension
had to click the 'continue' (SOS) button which was foreseen for the case that
automatic redirect fails.\nremoved old hookEvent() call of wikibits and used
jQuery( document ).ready( submitOpenIDForm ) as suggested by Dantman
Modified Paths:
--------------
trunk/extensions/OpenID/SpecialOpenID.body.php
Modified: trunk/extensions/OpenID/SpecialOpenID.body.php
===================================================================
--- trunk/extensions/OpenID/SpecialOpenID.body.php 2012-02-01 23:53:17 UTC
(rev 110536)
+++ trunk/extensions/OpenID/SpecialOpenID.body.php 2012-02-02 00:09:38 UTC
(rev 110537)
@@ -291,7 +291,7 @@
} else {
$wgOut->addWikiMsg( 'openidautosubmit' );
$wgOut->addHTML( $form_html );
- $wgOut->addInlineScript( "function
submitOpenIDForm() {\n document.getElementById(\"" . $form_id . "\").submit()\n
}\nhookEvent(\"load\", submitOpenIDForm);\n" );
+ $wgOut->addInlineScript( "function
submitOpenIDForm() {\n document.getElementById(\"" . $form_id .
"\").submit()\n};\njQuery( document ).ready( submitOpenIDForm );\n");
}
}
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs