diff options
Diffstat (limited to 'modules-available/roomplanner/js')
-rw-r--r-- | modules-available/roomplanner/js/grid.js | 12 | ||||
-rw-r--r-- | modules-available/roomplanner/js/init.js | 18 |
2 files changed, 11 insertions, 19 deletions
diff --git a/modules-available/roomplanner/js/grid.js b/modules-available/roomplanner/js/grid.js index 80789963..697d7c3f 100644 --- a/modules-available/roomplanner/js/grid.js +++ b/modules-available/roomplanner/js/grid.js @@ -125,18 +125,10 @@ if (!roomplanner) var roomplanner = { }, initTooltip: function(el) { if ($(el).attr('itemtype') === 'pc') { - var tip = '<div class="table">'; + var tip = "<b>Rechnerdaten</b><br>"; $(roomplanner.computerAttributes).each(function(i,key){ - 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 += __(key)+": "+$(el).attr(key)+"<br>"; }); - tip += '</div>'; $(el).attr('title', tip).attr('data-toggle', 'tooltip'); $(el).tooltip({html: true, container: 'body'}); diff --git a/modules-available/roomplanner/js/init.js b/modules-available/roomplanner/js/init.js index 79f8e17e..7cada0dd 100644 --- a/modules-available/roomplanner/js/init.js +++ b/modules-available/roomplanner/js/init.js @@ -6,10 +6,10 @@ function initRoomplanner() { $('#drawarea').css('left',(-roomplanner.settings.scale*10)+'px'); roomplanner.computerAttributes = [ - "hostname", - "ip", - "mac_address", - "muuid" + "muuid", + "mac_address", + "ip", + "hostname" ]; $("#loadButton").click(function() { @@ -66,11 +66,11 @@ function initRoomplanner() { } var translation = { - "muuid" : "UUID", - "mac_address" : "MAC", - "ip" : "IP", - "hostname": "Hostname", - + "muuid" : "Machine UUID", + "mac_address" : "MAC Adresse", + "ip" : "IP Adresse", + "hostname": "Rechnername", + "wall-horizontal" : "Wand (horizontal)", "wall-vertical" : "Mauer (vertikal)", "window-horizontal" : "Fenster", |