Changeset - c54683398484
[Not reviewed]
0 1 0
Bradley Kuhn (bkuhn) - 7 years ago 2014-12-02 22:58:39
bkuhn@ebb.org
Amount starts class "valid", when default accepted

The default amount of $120 appears in the amount field, but the class
"valid" was usually only added when the user changes the amount.

The valid class must be added at the start to ensure someone simply
clicking with the default still can donate.
1 file changed with 1 insertions and 0 deletions:
0 comments (0 inline, 0 general)
www/conservancy/static/supporter-page.js
Show inline comments
...
 
@@ -32,6 +32,7 @@ $(document).ready(function() {
 
        $control.find('.toggle-content').slideUp("slow");
 
        $control.find('.toggle-content').slideDown("slow");
 
    });
 
    $('#amount').addClass("valid");
 
    $('#amount').on('input', function() {
 
        var input=$(this);
 
        var value = input.val();
0 comments (0 inline, 0 general)