From 224b2fd44511c2a4cacf11638a9fb069ffa7c89b Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 25 Mar 2019 17:23:27 +0100 Subject: [statistics] clientlist: Add (de)select all button --- modules-available/statistics/templates/clientlist.html | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'modules-available/statistics') diff --git a/modules-available/statistics/templates/clientlist.html b/modules-available/statistics/templates/clientlist.html index fdf4c72b..2b1f3f2b 100644 --- a/modules-available/statistics/templates/clientlist.html +++ b/modules-available/statistics/templates/clientlist.html @@ -41,7 +41,13 @@ - {{lang_machine}} + +
+ + +
+ {{lang_machine}} + {{lang_address}} {{lang_lastSeen}} {{lang_kvmSupport}} @@ -159,12 +165,17 @@ document.addEventListener("DOMContentLoaded", function () { if (window && window.opera && window.opera.version && Number(window.opera.version()) < 13) { $(document).ready(function () { setTimeout(function () { - $('div.checkbox > input').click().click(); + $('div.checkbox > input.machine-checkbox').click().click(); }, 1); }); } else { $fn(); } + $('#toggle-all').click(function(e) { + e.stopPropagation(); + $boxes.prop('checked', $(this).is(':checked')); + $fn(); + }); }); //--> -- cgit v1.2.3-55-g7522