archiva-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1295529 - /archiva/trunk/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js
Date Thu, 01 Mar 2012 12:12:17 GMT
Author: olamy
Date: Thu Mar  1 12:12:16 2012
New Revision: 1295529

URL: http://svn.apache.org/viewvc?rev=1295529&view=rev
Log:
fix mapping of browse result

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=1295529&r1=1295528&r2=1295529&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
Thu Mar  1 12:12:16 2012
@@ -294,11 +294,11 @@ $(function() {
 
   mapbrowseResultEntries=function(data){
     $.log("mapbrowseResultEntries");
-    if (data) {
-      return $.isArray(data) ?
-         $.map(data,function(item){
+    if (data.browseResultEntries) {
+      return $.isArray(data.browseResultEntries) ?
+         $.map(data.browseResultEntries,function(item){
            return new BrowseResultEntry(item.name, item.project);
-         } ).sort(): [data];
+         } ).sort(): [data.browseResultEntries];
     }
     return [];
   }



Mime
View raw message