]> source.dussan.org Git - archiva.git/commitdiff
fix var init to prevent undefined string value
authorOlivier Lamy <olamy@apache.org>
Fri, 17 Feb 2012 22:50:51 +0000 (22:50 +0000)
committerOlivier Lamy <olamy@apache.org>
Fri, 17 Feb 2012 22:50:51 +0000 (22:50 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1245790 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js

index e76c99a542074a86087844b81e7afb6045b7d2e6..b0fcc066aa374fe9d0482d9fd32d268c05a9daf1 100644 (file)
@@ -29,8 +29,6 @@ $(function() {
     this.groupId=groupId;
     displayGroupId=function(groupId){
       displayGroupDetail(groupId,self);
-      $.log("called displayGroupDetail groupId:"+groupId
-                +",parentBrowseViewModel.groupId:"+(parentBrowseViewModel?parentBrowseViewModel.groupId:"null"));
     }
     displayParentGroupId=function(){
       $.log("called displayParentGroupId groupId:"+self.parentBrowseViewModel.groupId);
@@ -45,10 +43,9 @@ $(function() {
     breadCrumbEntries=function(){
       // root level ?
       if (!self.parentBrowseViewModel) return [];
-
       var splitted = self.groupId.split(".");
       var breadCrumbEntries=[];
-      var curGroupId;
+      var curGroupId="";
       for (var i=0;i<splitted.length;i++){
         curGroupId+=splitted[i];
         breadCrumbEntries.push(new BreadCrumbEntry(curGroupId,splitted[i]));
@@ -79,9 +76,7 @@ $(function() {
             dataType: 'json',
             success: function(data) {
               var browseResultEntries = mapbrowseResultEntries(data);
-              $.log("displayGroupDetail#sucess parentBrowseViewModel:"+parentBrowseViewModel);
               var browseViewModel = new BrowseViewModel(browseResultEntries,parentBrowseViewModel,groupId);
-
               ko.applyBindings(browseViewModel,mainContent.get(0));
             }
          });