From: Brion Vibber Date: Fri, 13 Nov 2009 23:34:15 +0000 (-0800) Subject: Fix regression in OpenID autosubmit page. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=50234be398a376c1f62499c33f31d9eea398a486;p=quix0rs-gnu-social.git Fix regression in OpenID autosubmit page. Since core JS loads were moved to the bottom, the JavaScript was being run before jQuery was loaded, so the onload event never got set. Moved it down to the scripts section. --- diff --git a/plugins/OpenID/openid.php b/plugins/OpenID/openid.php index ff7a938994..dd628e7733 100644 --- a/plugins/OpenID/openid.php +++ b/plugins/OpenID/openid.php @@ -280,6 +280,11 @@ class AutosubmitAction extends Action function showContent() { $this->raw($this->form_html); + } + + function showScripts() + { + parent::showScripts(); $this->element('script', null, '$(document).ready(function() { ' . ' $(\'#'. $this->form_id .'\').submit(); '.