[gnome-web-www: 64/68] fog: Add missing variables_epoch input when gift option is visible



commit 6387481216c9088f61d996c33079552603d5fa0b
Author: Tom Tryfonidis <tomtryf gnome org>
Date:   Tue Jan 24 15:25:59 2017 +0200

    fog: Add missing variables_epoch input when gift option is visible
    
    Set option 5 ("variables_epoch") to "1". We'll see whether this will help
    processing IPNs. In the future, when the number or names of the options are changed
    and the epoch is bumped, a script could use that information to determine how to
    parse the IPN.

 theme/js/friends.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/theme/js/friends.js b/theme/js/friends.js
index ad39daa..4b60f11 100644
--- a/theme/js/friends.js
+++ b/theme/js/friends.js
@@ -88,7 +88,7 @@ $(function() {
             $("#validation-msg").addClass("alert-validation").text('Make it over $30 and get a free LWN.net 
subscription!');
             $("#subscription-btn").removeAttr('disabled', 'disabled');
         } else if (value >= 30){
-            $("#validation-msg").addClass("alert-validation").html("<div class='checkbox'><label><input 
type='hidden' name='os4' id='lwn_subscription' value='No' /><input class='checkbox' name='os4' 
id='lwn_subscription' type='checkbox' value='Yes' /> Sign me up for a free LWN.net subscription 
</label></div> <span style='color: gray;'>You will receive an email with instructions on how to claim after 
donating for two months.</span> <input type='hidden' name='on4' value='LWN.net subscription' />");
+            $("#validation-msg").addClass("alert-validation").html("<div class='checkbox'><label><input 
type='hidden' name='os4' id='lwn_subscription' value='No' /><input class='checkbox' name='os4' 
id='lwn_subscription' type='checkbox' value='Yes' /> Sign me up for a free LWN.net subscription 
</label></div> <span style='color: gray;'>You will receive an email with instructions on how to claim after 
donating for two months.</span> <input type='hidden' name='on4' value='LWN.net subscription' /><input 
type='hidden' name='on5' value='variables_epoch' /><input type='hidden' name='os5' value='1' />");
             $("#subscription-btn").removeAttr('disabled', 'disabled');
         } else {
             $("#validation-msg").addClass("alert-validation").text("Subscriptions must be over $5");


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]