diff options
author | Brion Vibber <brion@pobox.com> | 2009-11-13 15:34:15 -0800 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2009-11-13 15:34:15 -0800 |
commit | 50234be398a376c1f62499c33f31d9eea398a486 (patch) | |
tree | d66c81fd751b0db39777c6f97e701085a0116e79 /plugins/OpenID | |
parent | eeae20c1010e75c955a9ec0caffd3fc8165aa65c (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/OpenID')
-rw-r--r-- | plugins/OpenID/openid.php | 5 |
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(); '. |