mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-01 19:22:42 +01:00
Reenable login forms for installs with multiple login mechanisms.
This commit is contained in:
parent
e88d187362
commit
cc5a86f75a
1 changed files with 8 additions and 3 deletions
|
@ -65,9 +65,14 @@ final class AphrontFormView extends AphrontView {
|
||||||
public function render() {
|
public function render() {
|
||||||
require_celerity_resource('aphront-form-view-css');
|
require_celerity_resource('aphront-form-view-css');
|
||||||
|
|
||||||
Javelin::initBehavior(
|
static $initialized_behavior;
|
||||||
'aphront-form-disable-on-submit',
|
if (!$initialized_behavior) {
|
||||||
array());
|
// TODO: This is sort of a yucky hack.
|
||||||
|
$initialized_behavior = true;
|
||||||
|
Javelin::initBehavior(
|
||||||
|
'aphront-form-disable-on-submit',
|
||||||
|
array());
|
||||||
|
}
|
||||||
|
|
||||||
return javelin_render_tag(
|
return javelin_render_tag(
|
||||||
'form',
|
'form',
|
||||||
|
|
Loading…
Reference in a new issue