summaryrefslogtreecommitdiffstats
path: root/modules-available/statistics
diff options
context:
space:
mode:
authorSimon Rettberg2019-03-25 17:23:27 +0100
committerSimon Rettberg2019-03-25 17:23:27 +0100
commit224b2fd44511c2a4cacf11638a9fb069ffa7c89b (patch)
tree4cf73f000f38d714aa9b450955b53f1e92d78ba5 /modules-available/statistics
parent[serversetup-bwlp-ipxe] Kill unused PxeMenu->hash() (diff)
downloadslx-admin-224b2fd44511c2a4cacf11638a9fb069ffa7c89b.tar.gz
slx-admin-224b2fd44511c2a4cacf11638a9fb069ffa7c89b.tar.xz
slx-admin-224b2fd44511c2a4cacf11638a9fb069ffa7c89b.zip
[statistics] clientlist: Add (de)select all button
Diffstat (limited to 'modules-available/statistics')
-rw-r--r--modules-available/statistics/templates/clientlist.html15
1 files changed, 13 insertions, 2 deletions
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 @@
</td>
</tr>
<tr>
- <th data-sort="string">{{lang_machine}}</th>
+ <th data-sort="string">
+ <div class="checkbox checkbox-inline">
+ <input type="checkbox" id="toggle-all">
+ <label></label>
+ </div>
+ {{lang_machine}}
+ </th>
<th data-sort="ipv4">{{lang_address}}</th>
<th data-sort="int" class="text-right">{{lang_lastSeen}}</th>
<th data-sort="string">{{lang_kvmSupport}}</th>
@@ -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();
+ });
});
//--></script>