Changeset - 982289597155
[Not reviewed]
0 1 0
Brett Smith (brett) - 7 years ago 2016-12-02 20:26:36
brett@sfconservancy.org
supporter: Fix JS syntax to check donation upgrade amount.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
www/conservancy/static/js/supporter-page.js
Show inline comments
...
 
@@ -170,13 +170,13 @@ $(document).ready(function() {
 

	
 
    var selectSupportTypeFromHash = function() {
 
        return supportTypeSelector(window.location.hash).click();
 
    };
 
    $window.bind("hashchange", selectSupportTypeFromHash);
 
    var $selectorLink = selectSupportTypeFromHash();
 
    if (parseInt($("form#annual").upgradeFromAmount) > 0) {
 
    if (parseFloat($("form#annual").get(0).dataset.upgradeFromAmount) > 0) {
 
        supportTypeSelector("#annual").click();
 
        $(".supporter-type-selector").hide();
 
    }
 
    else if ($selectorLink.length === 0) {
 
        supportTypeSelector("#annual").click();
 
    }
0 comments (0 inline, 0 general)