summaryrefslogtreecommitdiffstats
path: root/modules-available/roomplanner/js/grid.js
diff options
context:
space:
mode:
Diffstat (limited to 'modules-available/roomplanner/js/grid.js')
-rw-r--r--modules-available/roomplanner/js/grid.js12
1 files changed, 10 insertions, 2 deletions
diff --git a/modules-available/roomplanner/js/grid.js b/modules-available/roomplanner/js/grid.js
index 697d7c3f..80789963 100644
--- a/modules-available/roomplanner/js/grid.js
+++ b/modules-available/roomplanner/js/grid.js
@@ -125,10 +125,18 @@ if (!roomplanner) var roomplanner = {
},
initTooltip: function(el) {
if ($(el).attr('itemtype') === 'pc') {
- var tip = "<b>Rechnerdaten</b><br>";
+ var tip = '<div class="table">';
$(roomplanner.computerAttributes).each(function(i,key){
- tip += __(key)+": "+$(el).attr(key)+"<br>";
+ if (key === 'hostname') {
+ tip += '<div class="tc">' + $(el).attr(key) + '</div>';
+ return;
+ }
+ tip += '<div class="tr">';
+ tip += '<div class="td">' + __(key) + ": " + '</div>';
+ tip += '<div class="td">' + $(el).attr(key) + '</div>';
+ tip += '</div>';
});
+ tip += '</div>';
$(el).attr('title', tip).attr('data-toggle', 'tooltip');
$(el).tooltip({html: true, container: 'body'});