forked from GNUsocial/gnu-social
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()
|
||||
{
|
||||
$this->raw($this->form_html);
|
||||
}
|
||||
|
||||
function showScripts()
|
||||
{
|
||||
parent::showScripts();
|
||||
$this->element('script', null,
|
||||
'$(document).ready(function() { ' .
|
||||
' $(\'#'. $this->form_id .'\').submit(); '.
|
||||
|
Loading…
Reference in New Issue
Block a user