From 77166978b27b9eb671c905db5f98dbfed47de768 Mon Sep 17 00:00:00 2001
From: Simon Rettberg
Date: Wed, 7 Dec 2016 14:56:37 +0100
Subject: [roomplanner] Fix clipped tooltips, add border to PCs
---
modules-available/roomplanner/js/grid.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
(limited to 'modules-available/roomplanner/js')
diff --git a/modules-available/roomplanner/js/grid.js b/modules-available/roomplanner/js/grid.js
index 09e52099..cc09e21d 100644
--- a/modules-available/roomplanner/js/grid.js
+++ b/modules-available/roomplanner/js/grid.js
@@ -97,14 +97,14 @@ if (!roomplanner) var roomplanner = {
});
},
initTooltip: function(el) {
- if ($(el).attr('itemtype') == 'pc') {
+ if ($(el).attr('itemtype') === 'pc') {
var tip = "Rechnerdaten
";
$(roomplanner.computerAttributes).each(function(i,key){
tip += __(key)+": "+$(el).attr(key)+"
";
});
- $(el).attr('title', tip);
- $(el).tooltip({html: true});
+ $(el).attr('title', tip).attr('data-toggle', 'tooltip');
+ $(el).tooltip({html: true, container: 'body'});
}
},
/**
--
cgit v1.2.3-55-g7522