if(htmlIdSelect.html()!=null){
if( $.trim(htmlIdSelect.html().length)>0){
$("#main-content #"+tabToActivate).tab('show');
- $.log("checkArtifactDetailContent " + htmlId + " html not empty no calculation");
+ $.log("checkArtifactDetailContent " + htmlId + " html not empty no calculation, tabToActivate:"+tabToActivate);
return;
}
}
checkArtifactDetailContent(groupId,artifactId,version,repositoryId,"artifact-details-dependency-tree-content-a");
});
+ this.get('#artifact-mailing-list/:groupId/:artifactId/:version',function(context){
+
+ var repositoryId = this.params.repositoryId;
+ var groupId= this.params.groupId;
+ var artifactId= this.params.artifactId;
+ var version= this.params.version;
+ checkArtifactDetailContent(groupId,artifactId,version,repositoryId,"artifact-details-mailing-list-content-a");
+ });
+
+ this.get('#artifact-mailing-list~:repositoryId/:groupId/:artifactId/:version',function(context){
+
+ var repositoryId = this.params.repositoryId;
+ var groupId= this.params.groupId;
+ var artifactId= this.params.artifactId;
+ var version= this.params.version;
+ checkArtifactDetailContent(groupId,artifactId,version,repositoryId,"artifact-details-mailing-list-content-a");
+ });
+
var calculateUsedBy=function(groupId,artifactId,version){
var dependeesContentDiv=$("#main-content" ).find("#artifact-details-used-by-content" );
mainContent.find("#artifact-details-tabs").on('show', function (e) {
-
+ $.log("e.target:"+e.target);
if ($(e.target).attr("data-target")=="#artifact-details-info-content") {
var location ="#artifact";
if (self.repositoryId){
}
location+="/"+self.groupId+"/"+self.artifactId+"/"+self.version;
+ window.sammyArchivaApplication.setLocation(location);
+ return;
+ }
+ if ($(e.target).attr("href")=="#artifact-details-mailing-list-content") {
+ var location ="#artifact-mailing-list";
+ if (self.repositoryId){
+ location+="~"+self.repositoryId;
+ }
+ location+="/"+self.groupId+"/"+self.artifactId+"/"+self.version;
+
window.sammyArchivaApplication.setLocation(location);
return;
}