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 = '
' + $(el).attr(key) + ' | '; + } else { + tip += '' + __(key) + ": " + ' | '; + tip += '' + $(el).attr(key) + ' | '; } - tip += '