merging 10043 into the trunk
This commit is contained in:
parent
0a72583712
commit
794602c22a
1 changed files with 17 additions and 8 deletions
|
@ -38,7 +38,13 @@
|
|||
</td>
|
||||
</tr>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
var source = "";
|
||||
$('input#primaryAction').click(function() {
|
||||
source = "submit";
|
||||
});
|
||||
$('form#editForm').submit(function() {
|
||||
if (source == "submit") {
|
||||
var str = $('input[name=URI]').val();
|
||||
if ( str.indexOf('http://') >= 0 || str.indexOf('https://') >= 0 ) {
|
||||
return true;
|
||||
|
@ -46,7 +52,10 @@
|
|||
else {
|
||||
alert('The Namespace URI must begin with either http:// \n\n or https://');
|
||||
$('input[name=URI]').focus();
|
||||
source = "";
|
||||
return false;
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue