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:
@@ -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(); '.
|
||||
|
Reference in New Issue
Block a user