Fixed contact

This commit is contained in:
labcode-de 2018-03-21 18:34:06 +01:00
parent 2288895232
commit ae65d4017f
No known key found for this signature in database
GPG Key ID: 9CDB093B80490C2F

View File

@ -13,9 +13,12 @@ $(function () {
const rcp_option = $('#recipient>option[value=' + param_rcp + ']'); const rcp_option = $('#recipient>option[value=' + param_rcp + ']');
console.log(param_rcp) console.log(param_rcp)
if(rcp_option.length === 1) { if(rcp_option.length === 1) {
console.log(rcp_option)
rcp_option.attr('selected', true); rcp_option.attr('selected', true);
$('#recipient_option_choose').removeAttr('selected'); $('#recipient_option_choose').removeAttr('selected');
$('select').material_select(); $('select').material_select();
} else {
$('select').material_select();
} }
} else { } else {
$('select').material_select(); $('select').material_select();