1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-02 03:32:42 +01:00

Reenable login forms for installs with multiple login mechanisms.

This commit is contained in:
epriestley 2011-05-27 16:33:04 -07:00
parent e88d187362
commit cc5a86f75a

View file

@ -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');
static $initialized_behavior;
if (!$initialized_behavior) {
// TODO: This is sort of a yucky hack.
$initialized_behavior = true;
Javelin::initBehavior( Javelin::initBehavior(
'aphront-form-disable-on-submit', 'aphront-form-disable-on-submit',
array()); array());
}
return javelin_render_tag( return javelin_render_tag(
'form', 'form',