Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
konadave
mjwshared
Commits
0c83f2e6
Unverified
Commit
0c83f2e6
authored
Apr 03, 2022
by
konadave
Browse files
Pledges are also recurring
parent
4cf86391
Changes
1
Hide whitespace changes
Inline
Side-by-side
js/crm.payment.js
View file @
0c83f2e6
...
...
@@ -212,6 +212,11 @@
isRecur
=
Boolean
(
$
(
'
input[name="auto_renew"]
'
).
checked
);
}
}
if
(
!
isRecur
)
{
// multi-installment pledges are also recurring....
const
is_pledge
=
$
(
'
input[name="is_pledge"]:checked
'
);
isRecur
=
is_pledge
.
length
===
1
&&
parseInt
(
is_pledge
.
val
())
!==
0
&&
parseInt
(
$
(
'
#pledge_installments
'
).
val
())
>
1
;
}
this
.
debugging
(
this
.
name
,
'
isRecur is
'
+
isRecur
);
return
isRecur
;
},
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment