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:
parent
eeae20c101
commit
50234be398
|
@ -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(); '.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user