You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@archiva.apache.org by oc...@apache.org on 2007/08/20 11:22:24 UTC
svn commit: r567614 -
/maven/archiva/trunk/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/repositoryScanning.jsp
Author: oching
Date: Mon Aug 20 02:22:24 2007
New Revision: 567614
URL: http://svn.apache.org/viewvc?rev=567614&view=rev
Log:
[MRM-383]
- Updated javascript function and <c:forEach> loop for different file types in repositoryScanning.jsp
Modified:
maven/archiva/trunk/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/repositoryScanning.jsp
Modified: maven/archiva/trunk/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/repositoryScanning.jsp
URL: http://svn.apache.org/viewvc/maven/archiva/trunk/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/repositoryScanning.jsp?rev=567614&r1=567613&r2=567614&view=diff
==============================================================================
--- maven/archiva/trunk/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/repositoryScanning.jsp (original)
+++ maven/archiva/trunk/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/repositoryScanning.jsp Mon Aug 20 02:22:24 2007
@@ -57,11 +57,11 @@
function addFiletypePattern(filetypeId, newPatternId)
{
- var f = document.getElementById('filetypeForm');
-
- f.action = "${addFiletypePatternUrl}";
- f['pattern'].value = document.getElementById(newPatternId).value;
- f['fileTypeId'].value = filetypeId;
+ var f = document.forms['filetypeForm'];
+
+ f.action = "${addFiletypePatternUrl}";
+ f.elements['pattern'].value = document.getElementById(newPatternId).value;
+ f.elements['fileTypeId'].value = filetypeId;
f.submit();
}
//-->
@@ -87,7 +87,7 @@
<ww:url id="addFiletypePatternUrl" action="repositoryScanning" method="addFiletypePattern" />
- <c:forEach items="${fileTypeIds}" var="filetypeId">
+ <c:forEach items="${fileTypeIds}" var="filetypeId" varStatus="j">
<div class="filetype">
@@ -105,7 +105,7 @@
<c:set var="bgcolor" value="odd" scope="page" />
</c:otherwise>
</c:choose>
-
+
<c:set var="escapedPattern" value="${fn:escapeXml(pattern)}" scope="page" />
<tr>
@@ -124,13 +124,13 @@
<tr>
<td>
<ww:textfield size="40"
- id="newpattern_${i.index}"
+ id="newpattern_${j.index}"
theme="simple" />
</td>
<td>
<ww:a href="#"
title="Add Pattern to [${filetypeId}]"
- onclick="addFiletypePattern( '${filetypeId}', 'newpattern_${i.index}' )"
+ onclick="addFiletypePattern( '${filetypeId}', 'newpattern_${j.index}' )"
theme="simple">
<img src="${iconCreateUrl}" />
</ww:a>