NIHVIVO-3089: added javascript to ensure that the namespace ends with a slash

This commit is contained in:
tworrall 2011-08-15 15:04:15 +00:00
parent d600c70717
commit 0e42232d3c

View file

@ -13,6 +13,12 @@ $(document).ready(function(){
alert('Please enter a value for Individual URI 2.');
return false;
}
if (!$('#uri1').val().match(/\/$/)) {
$('#uri1').val($('#uri1').val() + "/");
}
if (!$('#uri2').val().match(/\/$/)) {
$('#uri2').val($('#uri2').val() + "/");
}
if ($('#uri1').val() == $('#uri2').val()){
alert('Primary and duplicate URI cannot be same.');
return false;