merging r10022 to the trunk
This commit is contained in:
parent
9fd7540e5e
commit
c83ff876c5
2 changed files with 46 additions and 19 deletions
|
@ -11,7 +11,7 @@
|
|||
</tr>
|
||||
<tr class="editformcell">
|
||||
<td valign="bottom" colspan="3">
|
||||
<b>Namespace URI*</b><br/>
|
||||
<b>Namespace URI*</b> <span class="note"> (must begin with http:// or https://)</span><br/>
|
||||
<c:choose>
|
||||
<c:when test="${_action eq 'update'}">
|
||||
<i>Change via the "change URI" button on previous screen</i><br/>
|
||||
|
@ -37,4 +37,16 @@
|
|||
</c:if>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<script type="text/javascript">
|
||||
$('form#editForm').submit(function() {
|
||||
var str = $('input[name=URI]').val();
|
||||
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://');
|
||||
$('input[name=URI]').focus();
|
||||
return false;
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
|
|
@ -9,9 +9,24 @@
|
|||
</tr>
|
||||
|
||||
<tr class="editformcell">
|
||||
<td>
|
||||
<b>New URI</b><br/><span class="warning"><strong>${epo.attributeMap['errorMsg']}</strong></span>
|
||||
<input type="text" size="95%" name="newURI" value='<%=request.getParameter("oldURI")%>'/>
|
||||
</td>
|
||||
<td>
|
||||
<br/>
|
||||
<b>New URI</b> <span class="note"> (must begin with http:// or htts://)</span>
|
||||
<br/>
|
||||
<span class="warning"><strong>${epo.attributeMap['errorMsg']}</strong></span>
|
||||
<input type="text" size="95%" name="newURI" value='<%=request.getParameter("oldURI")%>'/>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<script type="text/javascript">
|
||||
$('form#editForm').submit(function() {
|
||||
var str = $('input[name=newURI]').val();
|
||||
if ( str.indexOf('http://') >= 0 || str.indexOf('https://') >= 0 ) {
|
||||
return true;
|
||||
}
|
||||
else {
|
||||
alert('The New URI must begin with either http:// \n\n or https://');
|
||||
$('input[name=newURI]').focus();
|
||||
return false;
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue