$('#locationContainer').addClass('glm-hidden');
{if $settings.use_venue_locations}
$('#useOtherRefDest').val(memberID);
+ // lock the venue down to this member
+ $('#useOtherRefDest option:not(:selected)').prop('disabled', true);;
{/if}
} else {
$('#locationContainer').removeClass('glm-hidden');
+ {if $settings.use_venue_locations}
+ $('#useOtherRefDest option').removeAttr('disabled');
+ {/if}
initLocations();
}
});
+ {if $settings.use_venue_locations}
+ if ( $('#useMemberLocationCheckbox').is(':checked') ) {
+ //$('#useOtherRefDest').val(memberID);
+ // lock the venue down to this member
+ $('#useOtherRefDest option:not(:selected)').prop('disabled', true);
+ }
+ {/if}
// Hide location if other_ref_dest is set
$('#useOtherRefDest').on('change', function(){