merging 10043 into the trunk

This commit is contained in:
tworrall 2012-09-07 17:10:04 +00:00
parent 0a72583712
commit 794602c22a

View file

@ -38,15 +38,24 @@
</td> </td>
</tr> </tr>
<script type="text/javascript"> <script type="text/javascript">
$(document).ready(function() {
var source = "";
$('input#primaryAction').click(function() {
source = "submit";
});
$('form#editForm').submit(function() { $('form#editForm').submit(function() {
var str = $('input[name=URI]').val(); if (source == "submit") {
if ( str.indexOf('http://') >= 0 || str.indexOf('https://') >= 0 ) { var str = $('input[name=URI]').val();
return true; if ( str.indexOf('http://') >= 0 || str.indexOf('https://') >= 0 ) {
} return true;
else { }
alert('The Namespace URI must begin with either http:// \n\n or https://'); else {
$('input[name=URI]').focus(); alert('The Namespace URI must begin with either http:// \n\n or https://');
return false; $('input[name=URI]').focus();
source = "";
return false;
}
} }
}); });
});
</script> </script>