From 50f50a4f285c28bb32a3397fc2f7c0b944308d6d Mon Sep 17 00:00:00 2001 From: BaiJiangJie Date: Thu, 15 Aug 2019 19:08:04 +0800 Subject: [PATCH] =?UTF-8?q?[Bugfix]=20=E4=BF=AE=E5=A4=8Dremote-app?= =?UTF-8?q?=E5=BA=94=E7=94=A8=E5=88=9B=E5=BB=BA/=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E6=97=B6=EF=BC=8C=E5=8F=82=E6=95=B0=E8=AE=BE=E7=BD=AE=E4=B8=8D?= =?UTF-8?q?=E6=88=90=E5=8A=9F=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../templates/applications/remote_app_create_update.html | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/apps/applications/templates/applications/remote_app_create_update.html b/apps/applications/templates/applications/remote_app_create_update.html index 897126f98..246479fb3 100644 --- a/apps/applications/templates/applications/remote_app_create_update.html +++ b/apps/applications/templates/applications/remote_app_create_update.html @@ -110,16 +110,15 @@ function hiddenFields(){ function constructParams(data) { var typeList = ['chrome', 'mysql_workbench', 'vmware_client', 'custom']; var params = {}; - for (var type in typeList){ - if (data.type === type){ + $.each(typeList, function(index, value){ + if (data.type === value){ for (var k in data){ - if (k.startsWith(data.type)){ + if (k.startsWith(value)){ params[k] = data[k] } } - break } - } + }); return params; } $(document).ready(function () {