cabennett85/gittest — Issue #841: JS error on cause page when logged in as supporter of the cause
Author: cabennett85
Created: 2012-03-02 00:19:33+00:00
State: open

this.actionButton is undefined
Line 181 in cause.js

in constructor of class AjaxForm, instantiated with element:
form#fb-join-action-form.action-form

If the user already a supporter, we shouldn't render the form at all since there's nothing to submit.

Another fix that is less ideal is to not render the JS if the user is already a supporter.

On an unrelated note, I just saw the class AjaxForm and realize that it has a pretty crappy interface. =(