merging 10043 into the trunk
This commit is contained in:
parent
0a72583712
commit
794602c22a
1 changed files with 17 additions and 8 deletions
|
@ -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>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue