List of slices out of projects javascript error fixed
authorLoic Baron <loic.baron@lip6.fr>
Mon, 18 May 2015 15:53:41 +0000 (17:53 +0200)
committerLoic Baron <loic.baron@lip6.fr>
Mon, 18 May 2015 15:53:41 +0000 (17:53 +0200)
portal/templates/base.html

index 08b910d..7f9bd44 100644 (file)
@@ -140,8 +140,8 @@ $(document).ready(function() {
             elm = '<li>other slices <span class="glyphicon glyphicon-info-sign" title="these are <b>legacy slices</b> from now on, slices must be created within a project">&nbsp;</span>';
             elm += "<ul>" + slices_no_project.join( "" ) + "</ul>";
             elm += "</li>";
+            items.push(elm);
         }
-        items.push(elm);
 
         $("div#home-project-tree").html($( "<ul/>", { html: items.join( "" ) }));
         if (projects.length > 0) {