From: Loic Baron Date: Fri, 28 Mar 2014 15:45:06 +0000 (+0100) Subject: dashboard: fixed javascript error if no slice X-Git-Tag: myslice-1.1~164^2~3 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=dd64244a2dfe1ae24c9fb6b2cde38ff455b21687;p=myslice.git dashboard: fixed javascript error if no slice --- diff --git a/portal/templates/fed4fire/fed4fire_home-view.html b/portal/templates/fed4fire/fed4fire_home-view.html index 0429edaa..f7da2da1 100644 --- a/portal/templates/fed4fire/fed4fire_home-view.html +++ b/portal/templates/fed4fire/fed4fire_home-view.html @@ -106,12 +106,14 @@ {% if person %} $.post("/rest/user/",{'filters':{'user_hrn':'$user_hrn'}}, function( data ) { var items = []; - $.each( data[0].slices, function(i, val) { - items.push( "
  • " + val + "
  • " ); - }); - - $("div#home-slice-list").html($( "