X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=portal%2Ftemplates%2Fbase.html;h=347fe99481ae924d47230fb1d0371071b6520278;hb=8d1991bdded62a4f68cc93889435b9c28f8565b0;hp=8bc204ac736c8d13ecf2d58f542db5446cdda9eb;hpb=13de13576a270999e58fe59d9ee87ba243f946ef;p=myslice.git diff --git a/portal/templates/base.html b/portal/templates/base.html index 8bc204ac..347fe994 100644 --- a/portal/templates/base.html +++ b/portal/templates/base.html @@ -113,8 +113,6 @@ $(document).ready(function() { if (s.match('^' + escapeRegExp(p))) { slicename = s.replace(p + '.','') items_sl.push( "
  • " + slicename + "
  • " ); - }else if(s.split('.').length < 4){ - slices_no_project.push( "
  • " + s + "
  • " ); } }); el = "
  • " + p + ""; @@ -125,11 +123,12 @@ $(document).ready(function() { items.push(el); items_sl = []; }); - if (projects.length == 0){ - $.each( slices, function(y, s) { + + $.each( slices, function(y, s) { + if(s.split('.').length < 4){ slices_no_project.push( "
  • " + s + "
  • " ); - }); - } + } + }); if (slices_no_project.length > 0) { elm = '
  • other slices  '; elm += "";