merging r10022 to the trunk

This commit is contained in:
tworrall 2012-08-29 19:51:27 +00:00
parent 9fd7540e5e
commit c83ff876c5
2 changed files with 46 additions and 19 deletions

View file

@ -11,7 +11,7 @@
</tr> </tr>
<tr class="editformcell"> <tr class="editformcell">
<td valign="bottom" colspan="3"> <td valign="bottom" colspan="3">
<b>Namespace URI*</b><br/> <b>Namespace URI*</b>&nbsp;<span class="note"> (must begin with http:// or https://)</span><br/>
<c:choose> <c:choose>
<c:when test="${_action eq 'update'}"> <c:when test="${_action eq 'update'}">
<i>Change via the "change URI" button on previous screen</i><br/> <i>Change via the "change URI" button on previous screen</i><br/>
@ -37,4 +37,16 @@
</c:if> </c:if>
</td> </td>
</tr> </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>

View file

@ -10,8 +10,23 @@
<tr class="editformcell"> <tr class="editformcell">
<td> <td>
<b>New URI</b><br/><span class="warning"><strong>${epo.attributeMap['errorMsg']}</strong></span> <br/>
<b>New URI</b>&nbsp;<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")%>'/> <input type="text" size="95%" name="newURI" value='<%=request.getParameter("oldURI")%>'/>
</td> </td>
</tr> </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>