$('#repetition_frequency_unit', $form).each(changeFrequencyUnit).change(changeFrequencyUnit);\r
\r
function disableUnselected() {\r
- $('input:radio[name=ends], input[name=repeats_by]', $form).not(':checked').siblings(':input').prop('disabled', true);\r
+ $('input:radio[name=ends], input[name=repeats_by]', $form).not(':checked').siblings(':input').prop('disabled', true).removeClass('required');\r
}\r
disableUnselected();\r
\r
disableUnselected();\r
});\r
\r
+ $('input:radio[name=ends]').siblings('.crm-clear-link').click(function() {\r
+ $('input:radio[name=ends][value=1]').prop('checked', true).trigger('click');\r
+ });\r
+\r
function validate() {\r
var valid = $(':input', '#recurring-entity-block').valid(),\r
modified = CRM.utils.initialValueChanged('#recurring-entity-block');\r