summaryrefslogtreecommitdiffstats
path: root/archiva-modules
diff options
context:
space:
mode:
Diffstat (limited to 'archiva-modules')
-rw-r--r--archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/main.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/main.js b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/main.js
index 97ea676d8..5ebea9d3a 100644
--- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/main.js
+++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/main.js
@@ -194,7 +194,13 @@ $(function() {
var res = $.map(data.artifact,function(item){
return item.artifactId;
});
- response(res);
+ var uniqId = [];
+ for (var i= 0;i<res.length;i++){
+ if ( $.inArray(res[i],uniqId)<0){
+ uniqId.push(res[i]);
+ }
+ }
+ response(uniqId);
}
);