NIHVIVO-3089: added javascript to ensure that the namespace ends with a slash
This commit is contained in:
parent
d600c70717
commit
0e42232d3c
1 changed files with 6 additions and 0 deletions
|
@ -13,6 +13,12 @@ $(document).ready(function(){
|
||||||
alert('Please enter a value for Individual URI 2.');
|
alert('Please enter a value for Individual URI 2.');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if (!$('#uri1').val().match(/\/$/)) {
|
||||||
|
$('#uri1').val($('#uri1').val() + "/");
|
||||||
|
}
|
||||||
|
if (!$('#uri2').val().match(/\/$/)) {
|
||||||
|
$('#uri2').val($('#uri2').val() + "/");
|
||||||
|
}
|
||||||
if ($('#uri1').val() == $('#uri2').val()){
|
if ($('#uri1').val() == $('#uri2').val()){
|
||||||
alert('Primary and duplicate URI cannot be same.');
|
alert('Primary and duplicate URI cannot be same.');
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue