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.js16
1 files changed, 12 insertions, 4 deletions
diff --git a/modules-available/roomplanner/js/grid.js b/modules-available/roomplanner/js/grid.js
index 697d7c3f..9157faa5 100644
--- a/modules-available/roomplanner/js/grid.js
+++ b/modules-available/roomplanner/js/grid.js
@@ -123,12 +123,20 @@ if (!roomplanner) var roomplanner = {
});
}
},
- initTooltip: function(el) {
+ initTooltip: function (el) {
if ($(el).attr('itemtype') === 'pc') {
- var tip = "<b>Rechnerdaten</b><br>";
- $(roomplanner.computerAttributes).each(function(i,key){
- tip += __(key)+": "+$(el).attr(key)+"<br>";
+ var tip = '<table>';
+ $(roomplanner.computerAttributes).each(function (i, key) {
+ tip += '<tr>';
+ if (key === 'hostname') {
+ tip += '<td colspan="2">' + $(el).attr(key) + '</td>';
+ } else {
+ tip += '<td>' + __(key) + ": " + '</td>';
+ tip += '<td>' + $(el).attr(key) + '</td>';
+ }
+ tip += '</tr>';
});
+ tip += '</table>';
$(el).attr('title', tip).attr('data-toggle', 'tooltip');
$(el).tooltip({html: true, container: 'body'});