X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=portal%2Ftemplates%2Finstitution.html;h=75b4758f0fcb9b3d9079bfaab0d5b1b77234b383;hb=6ba53085c00c1f416b28fd505e6611c154f0cc71;hp=771a5e5c6cee64682414de133887d137dfad5ae1;hpb=981444de731f10780a07233881787a6ce9b232e6;p=myslice.git diff --git a/portal/templates/institution.html b/portal/templates/institution.html index 771a5e5c..75b4758f 100644 --- a/portal/templates/institution.html +++ b/portal/templates/institution.html @@ -3,9 +3,9 @@ {% block unfold_main %}

Affiliation to an Institution

@@ -70,6 +70,18 @@ $('div.home-panel').hide(); $('div#'+$(this).data('panel')).show(); }); + var url = window.location; + if(url.hash) { + // Fragment exists + tab = url.href.split("#")[1]; + tab_exists = $('div#'+tab).length; + if (tab_exists) { + $('ul.nav-tabs li').removeClass('active'); + $('li#'+tab+'-tab').addClass('active'); + $('div.home-panel').hide(); + $('div#'+tab).show(); + } + } $('button#createslice').click(function() { window.location="/portal/slice_request/"; }) @@ -161,7 +173,7 @@ slice_row = ""; slice_row += ""; - slice_row += "" + val.slice_hrn + ""; + slice_row += "" + val.slice_hrn + ""; slice_row += ""+user_length+""; slice_row += ""+slice_url+""; slice_row += ""+nodes_length+"";