diff options
Diffstat (limited to 'modules-available/statistics/templates/clientlist.html')
-rw-r--r-- | modules-available/statistics/templates/clientlist.html | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/modules-available/statistics/templates/clientlist.html b/modules-available/statistics/templates/clientlist.html index 721617a9..b33eafa3 100644 --- a/modules-available/statistics/templates/clientlist.html +++ b/modules-available/statistics/templates/clientlist.html @@ -32,6 +32,7 @@ <span class="glyphicon glyphicon-filter"></span> </button> </td> + <td></td> <td> <button type="button" class="btn btn-default btn-xs" onclick="popupFilter('realcores')"> <span class="glyphicon glyphicon-filter"></span> @@ -56,6 +57,7 @@ <th data-sort="string">{{lang_kvmSupport}}</th> <th data-sort="int" class="text-right">{{lang_gbRam}}</th> <th data-sort="int" class="text-right">{{lang_tmpGb}}</th> + <th data-sort="int" class="text-right">{{lang_persistentPart}}</th> <th data-sort="int">{{lang_cpuModel}}</th> <th data-sort="string">{{lang_location}}</th> </tr> @@ -144,6 +146,9 @@ </span> </div>{{/hddcount}} </td> + <td data-sort-value="{{gbpersist}}" class="text-right"> + {{gbpersist}} GiB + </td> <td data-sort-value="{{realcores}}">{{lang_realCores}}: {{realcores}}<div class="small">{{cpumodel}}</div></td> <td data-sort-value="{{location.sort}}">{{location.name}}</td> </tr> @@ -361,7 +366,7 @@ document.addEventListener("DOMContentLoaded", function () { idx++; var $th = $(this); $cs.append($('<div class="checkbox">') - .append($('<input id="shc-' + idx + '" type="checkbox" onclick="toggleColumn(' + idx + ')" checked="checked">')) + .append($('<input id="shc-' + idx + '" type="checkbox" onclick="toggleColumn(this, ' + idx + ')" checked="checked">')) .append($('<label for="shc-' + idx + '">').text($th.text()))); }); // Load previous visibility settings @@ -381,9 +386,9 @@ document.addEventListener("DOMContentLoaded", function () { } }); -function toggleColumn(idx) +function toggleColumn(e, idx) { - var $el = $(this); + var $el = $(e); $('#client-list tr > td:nth-child(' + idx + '), #client-list tr > th:nth-child(' + idx + ')') .css('display', $el.is(':checked') ? '' : 'none'); var data = {}; |