diff options
author | Steffen Ritter | 2021-10-15 16:49:30 +0200 |
---|---|---|
committer | Steffen Ritter | 2021-10-15 16:49:30 +0200 |
commit | 05aefc85457546a3d062fa211da3dc52955b56cd (patch) | |
tree | af9738d6339a793bf871b12f3f80d0921fb05ac3 /modules-available | |
parent | [eventlog] Check permissions; add synamic suggestions for keys (diff) | |
download | slx-admin-05aefc85457546a3d062fa211da3dc52955b56cd.tar.gz slx-admin-05aefc85457546a3d062fa211da3dc52955b56cd.tar.xz slx-admin-05aefc85457546a3d062fa211da3dc52955b56cd.zip |
[statistics] Add additional option to show sysinfos
fixes: #3657
Diffstat (limited to 'modules-available')
-rw-r--r-- | modules-available/statistics/templates/clientlist.html | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/modules-available/statistics/templates/clientlist.html b/modules-available/statistics/templates/clientlist.html index af349437..67e1a56f 100644 --- a/modules-available/statistics/templates/clientlist.html +++ b/modules-available/statistics/templates/clientlist.html @@ -170,6 +170,11 @@ data-target="#mac-list"> {{lang_uuid}} </a></li> + <hr style="margin: 0px"> + <li><a href="#" class="list-btn" data-what="hostname ip mac uuid" data-toggle="modal" + data-target="#mac-list"> + {{lang_fullInfo}} + </a></li> </ul> </div> {{#rebootcontrol}} @@ -302,14 +307,19 @@ document.addEventListener("DOMContentLoaded", function () { $fn(); }); $('.list-btn').click(function() { - var what = $(this).data('what'); + var what = $(this).data('what').split(" "); var $el = $('#mac-list-content'); $el.empty(); var result = ''; - var num = $('.machine').has('input[type=checkbox]:checked').find('.' + what).each(function() { - var text = this.innerText; - if (what === 'mac') text = text.replace(/-/g, ':'); - result += text + "\n"; + var num = $('.machine').has('input[type=checkbox]:checked').each(function(index, element) { + what.forEach(function (w) { + $(element).find('.' + w).each(function() { + var text = this.innerText; + if (w === 'mac') text = text.replace(/-/g, ':'); + result += text + "\t"; + }); + }); + result += "\n"; }).length; $el.text(result).prop('rows', Math.min(24, Math.max(5, num))); }); |