NIHVIVO-3213: Fixed javascript error for validating relations between proxies and profiles.
This commit is contained in:
parent
593ca6d8b9
commit
7f8557bee5
1 changed files with 9 additions and 2 deletions
|
@ -14,8 +14,15 @@ $(document).ready(function(){
|
|||
|
||||
if ($proxyUri == undefined || $profileUri == undefined){
|
||||
$('#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;
|
||||
}else{
|
||||
$('#error-alert p').append("You must select a minimum of 1 editor and profile.");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue