Skip to content

Commit

Permalink
Saving donation email was failing
Browse files Browse the repository at this point in the history
Ref: #261
  • Loading branch information
gboudreau committed Mar 2, 2021
1 parent 0db0a1e commit 54190b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web-app/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -834,7 +834,7 @@ function goto_remove_drive() {
function donationComplete(el) {
let $el = $(el);
let email = $el.val();
ajaxCallFromButton(button, 'donate', 'email=' + encodeURIComponent(email), 'Saving...', null, 'Saved', function (data, $button) {
ajaxCallFromButton(null, 'donate', 'email=' + encodeURIComponent(email), 'Saving...', null, 'Saved', function (data, $button) {
if ($el) {
$el.attr('data-toggle', 'tooltip').attr('data-placement', 'bottom').attr('title', 'Thank you!').tooltip({trigger: 'manual'}).tooltip('show');
setTimeout(function() { $el.tooltip('hide'); location.reload(); }, 3*1000);
Expand Down

0 comments on commit 54190b6

Please sign in to comment.