From: Yasin Date: Thu, 27 Feb 2014 10:01:03 +0000 (+0100) Subject: Institution: added filter in html for user list X-Git-Tag: myslice-1.1~279^2 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=bd812185717e3554a02f4d405c377c68bc3cdef9;p=unfold.git Institution: added filter in html for user list --- diff --git a/portal/templates/institution.html b/portal/templates/institution.html index 6026b710..a0f65104 100644 --- a/portal/templates/institution.html +++ b/portal/templates/institution.html @@ -134,7 +134,7 @@ }); {% endif %} {% if person %} - $.getJSON("/rest/user/", function( data ) { + $.getJSON("/rest/user/",{'filters':{'parent_authority':'ple.upmc'}}, function( data ) { var list_users = []; var table_users = []; /* @@ -142,25 +142,8 @@ */ $.each( data, function( key, val ) { list_users.push( "
  • " + val.user_email + "
  • " ); - /*if(val.nodes=="undefined" || val.nodes==null){ - nodes_length=0; - }else{ - nodes_length=val.nodes.length; - } - - if(val.user=="undefined" || val.user==null){ - user_length=0; - }else{ - user_length=val.user.length; - } - - if(val.slice_url=="undefined" || val.slice_url==null){ - slice_url=""; - }else{ - slice_url=""+val.slice_url+""; - }*/ - user_row = ""; + user_row = ""; user_row += ""; user_row += ""+val.user_email+""; user_row += ""+val.user_hrn+"";