Skip to content
Snippets Groups Projects
Commit 77d6c935 authored by Dave Greenberg's avatar Dave Greenberg
Browse files

Expose max_related field in EDIT membership types if relationship_type_id has a value.

parent e2e8558a
Branches
Tags
No related merge requests found
......@@ -203,10 +203,19 @@ cj(function(){
showHidePeriodSettings();
});
showHideMaxRelated(cj('#relationship_type_id :selected').val());
cj('#relationship_type_id').change(function(){
showHideMaxRelated(cj('#relationship_type_id :selected').val());
});
{/literal}
{if $action eq 2}
{literal}
showHideMaxRelated(cj('#relationship_type_id').val());
cj('#relationship_type_id').change(function(){
showHideMaxRelated(cj('#relationship_type_id').val());
});
{/literal}{else}{literal}
showHideMaxRelated(cj('#relationship_type_id :selected').val());
cj('#relationship_type_id').change(function(){
showHideMaxRelated(cj('#relationship_type_id :selected').val());
});
{/literal}{/if}{literal}
});
function showHidePeriodSettings() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment