remove data-bind attribute as coming from user management fail

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1293683 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2012-02-25 20:45:59 +00:00
parent 578d4c9858
commit cd9e790dd4
1 changed files with 18 additions and 11 deletions

View File

@ -41,10 +41,23 @@ $(function() {
}
displayProjectEntry=function(id){
$.log("displayProjectEntry:"+id);
var url = "restServices/archivaServices/browseService/versionsList/org.apache.maven/maven-archiver";
// value org.apache.maven/maven-archiver
// split this org.apache.maven and maven-archiver
var values = id.split(".");
var groupId="";
for (var i = 0;i<values.length-1;i++){
groupId+=values[i];
if (i<values.length-2)groupId+=".";
}
var artifactId=values[values.length-1];
$.log("displayProjectEntry:"+id+",groupId:artifactId:"+groupId+":"+artifactId);
$.ajax(url, {
$.ajax("restServices/archivaServices/browseService/projectVersionMetadata/"+groupId+"/"+artifactId, {
type: "GET",
dataType: 'json',
success: function(data) {
$.ajax("restServices/archivaServices/browseService/versionsList/"+groupId+"/"+artifactId, {
type: "GET",
dataType: 'json',
success: function(data) {
@ -52,13 +65,6 @@ $(function() {
}
});
url = "restServices/archivaServices/browseService/projectVersionMetadata/org.apache.maven/maven-archiver";
$.ajax(url, {
type: "GET",
dataType: 'json',
success: function(data) {
}
});
@ -121,6 +127,7 @@ $(function() {
displayBrowse=function(){
clearUserMessages();
var mainContent = $("#main-content");
mainContent.attr("data-bind","");
mainContent.html($("#browse-tmpl" ).tmpl());
mainContent.find("#browse_result").html(mediumSpinnerImg());
$.ajax("restServices/archivaServices/browseService/rootGroups", {