auto_renew is added to the form after allowAutoRenewMembership is assigned, and only if it
is true - so the check for cj('auto_renew') is not enhanced by the check for the variable
- but it DOES lead to notices on the other pages
function toggleRecur() {
var isRecur = cj('input[id="is_recur"]:checked');
- var allowAutoRenew = {/literal}'{$allowAutoRenewMembership}'{literal};
+
var quickConfig = {/literal}'{$quickConfig}'{literal};
- if (allowAutoRenew && cj("#auto_renew") && quickConfig) {
+ if (cj("#auto_renew") && quickConfig) {
showHideAutoRenew(null);
}