From 645059ffae753990c8c0450b633d3ece24056e80 Mon Sep 17 00:00:00 2001 From: Loic Baron Date: Tue, 18 Mar 2014 19:27:25 +0100 Subject: [PATCH] don't know why this file is prefixed... --- portal/static/js/onelab_slice-resource-view.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/portal/static/js/onelab_slice-resource-view.js b/portal/static/js/onelab_slice-resource-view.js index a4180933..93e6866d 100644 --- a/portal/static/js/onelab_slice-resource-view.js +++ b/portal/static/js/onelab_slice-resource-view.js @@ -3,6 +3,11 @@ $(document).ready(function() { $('.'+this.id).trigger('show'); }); + $('a.sl-platform').click(function (e) { + $('.'+this.id).trigger('show'); + }); + + $('ul.nav-resources a').click(function() { $('ul.nav-resources li').removeClass('active'); $(this).parent().addClass('active'); @@ -16,9 +21,9 @@ $(document).ready(function() { }); $.get("/rest/network", function(data) { - var list = '
Testbeds
'; + var list = '
Testbeds
'; for(i=0; i'+data[i].network_longname+'

'+data[i].network_hrn+'

'; + list += ''+data[i].network_longname+'

'+data[i].network_hrn+'

'; } $('#select-platform').html(list); }).done(function() { -- 2.43.0