From c921fdcfc38de2c99f84d9e36fb20d7b845df0cb Mon Sep 17 00:00:00 2001 From: Rasmussen Date: Tue, 3 Apr 2018 21:45:44 +0200 Subject: [PATCH] =?UTF-8?q?H=C3=A5ndtering=20af=20parametre=20i=20forbinde?= =?UTF-8?q?lse=20med=20page?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I relation til issue #159 er her et løsningsforslag --- js/formular.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/js/formular.js b/js/formular.js index 826acc4..8046a13 100755 --- a/js/formular.js +++ b/js/formular.js @@ -3848,8 +3848,15 @@ Formular = SpatialMap.Class ({ } } } - } + }, + paramHasValue: function (param) { + var curParam = this.currentParams[param]; + if (typeof curParam !== 'undefined' && curParam != null && curParam.length > 0) { + return true; + } + return false; + } });