Skip to content
Snippets Groups Projects
Commit d3775e49 authored by Jamie McClelland's avatar Jamie McClelland
Browse files

ensure membership contribution pages with required auto renew work

parent 8299b171
Branches issue189
No related tags found
No related merge requests found
......@@ -628,11 +628,14 @@ CRM.$(function($) {
if ($('input[name="auto_renew"]').prop('checked')) {
isRecur = true;
}
else if (document.getElementById('auto_renew').type == 'hidden') {
isRecur = (document.getElementById('auto_renew').value == 1);
else if ($('input[name="auto_renew"]').attr('type') == 'hidden') {
// If the auto_renew field exists as a hidden field, then we force a
// recurring contribution (the value isn't useful since it depends on
// the locale - e.g. "Please renew my membership")
isRecur = true;;
}
else {
isRecur = Boolean(document.getElementById('auto_renew').checked);
isRecur = Boolean($('input[name="auto_renew"]').checked);
}
}
debugging('isRecur is ' + isRecur);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment