From 7f8557bee5e5ea9ff718d8621318b668b83ee832 Mon Sep 17 00:00:00 2001 From: manolobevia Date: Wed, 9 Nov 2011 20:52:49 +0000 Subject: [PATCH] NIHVIVO-3213: Fixed javascript error for validating relations between proxies and profiles. --- webapp/web/js/account/proxyUtils.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/webapp/web/js/account/proxyUtils.js b/webapp/web/js/account/proxyUtils.js index 458a7b189..5763c710f 100644 --- a/webapp/web/js/account/proxyUtils.js +++ b/webapp/web/js/account/proxyUtils.js @@ -14,8 +14,15 @@ $(document).ready(function(){ if ($proxyUri == undefined || $profileUri == undefined){ $('#error-alert').removeClass('hidden'); - $('#error-alert p').append("You must select a minimum of 1 editor and profile."); - return false; + + var $errorAlert = $('#error-alert p').html(); + + if ($errorAlert !=""){ + return false; + }else{ + $('#error-alert p').append("You must select a minimum of 1 editor and profile."); + return false; + } } }); });