2010-07-13 17:03:48 +00:00
|
|
|
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
|
|
|
|
|
2010-07-13 15:33:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
$(document).ready(function(){
|
|
|
|
|
|
|
|
$('#takeuri').submit(function() {
|
|
|
|
if ($('#uri1').val() == '') {
|
|
|
|
alert('Please enter a value for Individual URI 1.');
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
if ($('#uri2').val() == '') {
|
|
|
|
alert('Please enter a value for Individual URI 2.');
|
|
|
|
return false;
|
|
|
|
}
|
2011-08-15 15:04:15 +00:00
|
|
|
if (!$('#uri1').val().match(/\/$/)) {
|
|
|
|
$('#uri1').val($('#uri1').val() + "/");
|
|
|
|
}
|
|
|
|
if (!$('#uri2').val().match(/\/$/)) {
|
|
|
|
$('#uri2').val($('#uri2').val() + "/");
|
|
|
|
}
|
2011-03-28 19:01:35 +00:00
|
|
|
if ($('#uri1').val() == $('#uri2').val()){
|
|
|
|
alert('Primary and duplicate URI cannot be same.');
|
|
|
|
return false;
|
|
|
|
}
|
2010-07-13 15:33:06 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
});
|