From: Loic Baron Date: Thu, 18 Jun 2015 09:18:55 +0000 (+0200) Subject: Dashboard: Fixed list of slices not in a project X-Git-Url: http://git.onelab.eu/?p=myslice.git;a=commitdiff_plain;h=8d1991bdded62a4f68cc93889435b9c28f8565b0 Dashboard: Fixed list of slices not in a project --- 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 += "";