var group = path.indexOf( "/" );\r
if ( group > 0 )\r
{\r
- document.getElementById( "addLegacyArtifactPath_groupId" ).value\r
+ document.getElementById( "addLegacyArtifactPath_commit_groupId" ).value\r
= path.substring( 0, group );\r
group += 1;\r
var type = path.indexOf( "/", group );\r
if ( type > 0 )\r
{\r
- document.getElementById( "addLegacyArtifactPath_type" ).value\r
+ document.getElementById( "addLegacyArtifactPath_commit_type" ).value\r
= path.substring( group, type - 1 );\r
}\r
type += 1;\r
var ext = path.lastIndexOf( "." );\r
if ( version > 0 )\r
{\r
- document.getElementById( "addLegacyArtifactPath_artifactId" ).value\r
+ document.getElementById( "addLegacyArtifactPath_commit_artifactId" ).value\r
= path.substring( type, version );\r
- document.getElementById( "addLegacyArtifactPath_version" ).value\r
+ document.getElementById( "addLegacyArtifactPath_commit_version" ).value\r
= path.substring( version + 1, ext );\r
}\r
\r
<s:submit value="Add Legacy Artifact Path"/>\r
</s:form>\r
\r
- <script type="text/javascript">\r
- var ref = document.getElementById("addLegacyArtifactPath_legacyArtifactPath_artifact").value;\r
- var i = ref.indexOf( ":" );\r
- document.getElementById("addLegacyArtifactPath_groupId").value = ref.substring( 0, i );\r
- var j = i + 1;\r
- var i = ref.indexOf( ":", j );\r
- document.getElementById("addLegacyArtifactPath_artifactId").value = ref.substring( j, i );\r
- var j = i + 1;\r
- var i = ref.indexOf( ":", j );\r
- document.getElementById("addLegacyArtifactPath_version").value = ref.substring( j, i );\r
- var j = i + 1;\r
- var i = ref.indexOf( ":", j );\r
- document.getElementById("addLegacyArtifactPath_classifier").value = ref.substring( j, i );\r
-\r
- document.getElementById("addLegacyArtifactPath_legacyArtifactPath_path").focus();\r
- </script>\r
-\r
</div>\r
\r
</body>\r