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.
This commit is contained in:
Brion Vibber 2009-11-13 15:34:15 -08:00
parent eeae20c101
commit 50234be398
1 changed files with 5 additions and 0 deletions

View File

@ -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(); '.