Commit d1aab466 authored by bgm's avatar bgm Committed by mattwire
Browse files

extensions/stripe#121 Fix auto-recurring membership payments

parent 6a5666ff
......@@ -480,9 +480,20 @@ CRM.$(function($) {
}
function getIsRecur() {
// Auto-renew contributions
if (document.getElementById('is_recur') !== null) {
if (document.getElementById('is_recur').type == 'hidden') {
return document.getElementById('is_recur').value == 1;
}
return Boolean(document.getElementById('is_recur').checked);
}
// Auto-renew memberships
if (document.getElementById('auto_renew') !== null) {
if (document.getElementById('auto_renew').type == 'hidden') {
return document.getElementById('auto_renew').value == 1;
}
return Boolean(document.getElementById('auto_renew').checked);
}
return false;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment