From 71bd2b16a8a1c00e3dc617cd08cf98ca5624a1e7 Mon Sep 17 00:00:00 2001 From: Daniel Bimschas Date: Tue, 29 Oct 2013 18:31:51 +0100 Subject: [PATCH] Closing #88 (Tooltip with nodes list in reservation view grows bigger than browser can display) --- js/wisegui.js | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/js/wisegui.js b/js/wisegui.js index 2cc57b1..027d3d3 100644 --- a/js/wisegui.js +++ b/js/wisegui.js @@ -370,7 +370,12 @@ function buildPersonalReservationsTable(parent, reservations) { from = $('' + reservation.from.format("YYYY-MM-DD HH:mm:ss") + '').tooltip('show').click(nop); to = $('' + reservation.to.format("YYYY-MM-DD HH:mm:ss") + '').tooltip('show').click(nop); - nodes = $('")+'">'+ reservation.nodeUrns.length + ' nodes').tooltip('show').click(nop); + nodes = $( + '
' + + ' '+ reservation.nodeUrns.length + ' nodes' + + '
' + reservation.nodeUrns.join("
") + '
' + + '
' + ); btn = $('Open').bind('click', reservation, function(e) { e.preventDefault(); navigateTo(e.data.experimentId); @@ -417,7 +422,12 @@ function buildReservationTable(reservationsTab) { reservation = reservations[i]; from = $('' + reservation.from.format("YYYY-MM-DD HH:mm:ss") + '').tooltip('show').click(nop); to = $('' + reservation.to.format("YYYY-MM-DD HH:mm:ss") + '').tooltip('show').click(nop); - nodes = $('")+'">'+ reservation.nodeUrns.length + ' nodes').tooltip('show').click(nop); + nodes = $( + '
' + + ' '+ reservation.nodeUrns.length + ' nodes' + + '
' + reservation.nodeUrns.join("
") + '
' + + '
' + ); tableRows[i] = []; tableRows[i][0] = from;