NIHVIVO-3213: Fixed javascript error for validating relations between proxies and profiles.

This commit is contained in:
manolobevia 2011-11-09 20:52:49 +00:00
parent 593ca6d8b9
commit 7f8557bee5

View file

@ -14,8 +14,15 @@ $(document).ready(function(){
if ($proxyUri == undefined || $profileUri == undefined){ if ($proxyUri == undefined || $profileUri == undefined){
$('#error-alert').removeClass('hidden'); $('#error-alert').removeClass('hidden');
$('#error-alert p').append("<strong>You must select a minimum of 1 editor and profile.</strong>");
var $errorAlert = $('#error-alert p').html();
if ($errorAlert !=""){
return false; return false;
}else{
$('#error-alert p').append("You must select a minimum of 1 editor and profile.");
return false;
}
} }
}); });
}); });