From 2288895232d9728c97ea6169bb4db444aac69c3d Mon Sep 17 00:00:00 2001 From: labcode-de Date: Wed, 21 Mar 2018 18:32:23 +0100 Subject: [PATCH] Fixed contact --- assets/js/kontakt.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/assets/js/kontakt.js b/assets/js/kontakt.js index f18bb3a..a556cb4 100644 --- a/assets/js/kontakt.js +++ b/assets/js/kontakt.js @@ -9,8 +9,9 @@ function getParameterByName(name, url) { } $(function () { const param_rcp = getParameterByName('rcp') - if(param_rcp !== "") { + if(param_rcp !== "" && param_rcp !== null && param_rcp !== undefined) { const rcp_option = $('#recipient>option[value=' + param_rcp + ']'); + console.log(param_rcp) if(rcp_option.length === 1) { rcp_option.attr('selected', true); $('#recipient_option_choose').removeAttr('selected');