From c848221a597fce9573f94e467fa155d52db288e1 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 17 Dec 2019 14:33:08 +0100 Subject: [roomplanner] Tweak PC tooltip: disallow word-wrap --- modules-available/roomplanner/js/grid.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'modules-available/roomplanner/js/grid.js') diff --git a/modules-available/roomplanner/js/grid.js b/modules-available/roomplanner/js/grid.js index 80789963..9157faa5 100644 --- a/modules-available/roomplanner/js/grid.js +++ b/modules-available/roomplanner/js/grid.js @@ -123,20 +123,20 @@ if (!roomplanner) var roomplanner = { }); } }, - initTooltip: function(el) { + initTooltip: function (el) { if ($(el).attr('itemtype') === 'pc') { - var tip = '
'; - $(roomplanner.computerAttributes).each(function(i,key){ + var tip = ''; + $(roomplanner.computerAttributes).each(function (i, key) { + tip += ''; if (key === 'hostname') { - tip += '
' + $(el).attr(key) + '
'; - return; + tip += ''; + } else { + tip += ''; + tip += ''; } - tip += '
'; - tip += '
' + __(key) + ": " + '
'; - tip += '
' + $(el).attr(key) + '
'; - tip += '
'; + tip += ''; }); - tip += ''; + tip += '
' + $(el).attr(key) + '' + __(key) + ": " + '' + $(el).attr(key) + '
'; $(el).attr('title', tip).attr('data-toggle', 'tooltip'); $(el).tooltip({html: true, container: 'body'}); -- cgit v1.2.3-55-g7522