diff --git a/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/repositoryScanning.jsp b/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/repositoryScanning.jsp
index ff5f64df9..b6bfeffec 100644
--- a/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/repositoryScanning.jsp
+++ b/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/jsp/admin/repositoryScanning.jsp
@@ -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 @@
-
+
@@ -105,7 +105,7 @@
-
+
@@ -124,13 +124,13 @@
|
|