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

View File

@ -280,6 +280,11 @@ class AutosubmitAction extends Action
function showContent() function showContent()
{ {
$this->raw($this->form_html); $this->raw($this->form_html);
}
function showScripts()
{
parent::showScripts();
$this->element('script', null, $this->element('script', null,
'$(document).ready(function() { ' . '$(document).ready(function() { ' .
' $(\'#'. $this->form_id .'\').submit(); '. ' $(\'#'. $this->form_id .'\').submit(); '.