From ae65d4017f0ee3274a3a8d14654270b652a38144 Mon Sep 17 00:00:00 2001 From: labcode-de Date: Wed, 21 Mar 2018 18:34:06 +0100 Subject: [PATCH] Fixed contact --- assets/js/kontakt.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/assets/js/kontakt.js b/assets/js/kontakt.js index a556cb4..5146094 100644 --- a/assets/js/kontakt.js +++ b/assets/js/kontakt.js @@ -13,9 +13,12 @@ $(function () { const rcp_option = $('#recipient>option[value=' + param_rcp + ']'); console.log(param_rcp) if(rcp_option.length === 1) { + console.log(rcp_option) rcp_option.attr('selected', true); $('#recipient_option_choose').removeAttr('selected'); $('select').material_select(); + } else { + $('select').material_select(); } } else { $('select').material_select();