From: Olivier Lamy Date: Fri, 17 Feb 2012 22:50:51 +0000 (+0000) Subject: fix var init to prevent undefined string value X-Git-Tag: archiva-1.4-M3~1253 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=000a97ffabe1be8d38f3b34c2da2557a86f48cd0;p=archiva.git fix var init to prevent undefined string value git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1245790 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js index e76c99a54..b0fcc066a 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js @@ -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