summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2009-11-13 15:34:15 -0800
committerBrion Vibber <brion@pobox.com>2009-11-13 15:34:15 -0800
commit50234be398a376c1f62499c33f31d9eea398a486 (patch)
treed66c81fd751b0db39777c6f97e701085a0116e79 /plugins
parenteeae20c1010e75c955a9ec0caffd3fc8165aa65c (diff)
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.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/OpenID/openid.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/OpenID/openid.php b/plugins/OpenID/openid.php
index ff7a93899..dd628e773 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(); '.