X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=portal%2Ftemplates%2Finstitution.html;fp=portal%2Ftemplates%2Finstitution.html;h=575a1f0f73d86ddafaa0d201d8cfe7dea7eb6853;hb=2f89f2e81c44a63d6d90746a1f3c126603280b66;hp=abde744108e1f08477167cc521e6100bb28356a3;hpb=5b66e750805a71fee70b0f8c0c4b5e4d71174673;p=myslice.git diff --git a/portal/templates/institution.html b/portal/templates/institution.html index abde7441..575a1f0f 100644 --- a/portal/templates/institution.html +++ b/portal/templates/institution.html @@ -6,9 +6,9 @@
Loading Authority
@@ -71,6 +71,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/"; }) @@ -162,7 +174,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+"";