You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@archiva.apache.org by ol...@apache.org on 2012/02/25 21:45:59 UTC
svn commit: r1293683 -
/archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js
Author: olamy
Date: Sat Feb 25 20:45:59 2012
New Revision: 1293683
URL: http://svn.apache.org/viewvc?rev=1293683&view=rev
Log:
remove data-bind attribute as coming from user management fail
Modified:
archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js
Modified: archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js
URL: http://svn.apache.org/viewvc/archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js?rev=1293683&r1=1293682&r2=1293683&view=diff
==============================================================================
--- archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js (original)
+++ archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js Sat Feb 25 20:45:59 2012
@@ -41,23 +41,29 @@ $(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) {
- }
- });
-
- url = "restServices/archivaServices/browseService/projectVersionMetadata/org.apache.maven/maven-archiver";
+ $.ajax("restServices/archivaServices/browseService/versionsList/"+groupId+"/"+artifactId, {
+ type: "GET",
+ dataType: 'json',
+ success: function(data) {
- $.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", {