Skip to content

Commit

Permalink
2.20.25 Bug fix for field names in medium and narrow layout to not tr…
Browse files Browse the repository at this point in the history
…y to include 'hidden' fields - thanks [Brian Keyte]
  • Loading branch information
classaxe committed Dec 1, 2020
1 parent 198de29 commit acd87f8
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 35 deletions.
24 changes: 13 additions & 11 deletions public/js/functions.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* Project: RXX - NDB Logging Database
* Homepage: https://rxx.classaxe.com
* Version: 2.20.11
* Date: 2020-09-24
* Version: 2.20.24
* Date: 2020-12-01
* Licence: LGPL
* Copyright: 2020 Martin Francis
*/
Expand Down Expand Up @@ -1851,15 +1851,17 @@ var RT = {
var idx = 0;
this.source.find('thead tr th').each(function () {
var header = $(this);
RT.fields.push({
idx: idx++,
html: header.html().trim().split('<br>')[0],
l2: header.hasClass('l2'),
rowspan2: header.hasClass('rowspan2'),
type: (header.hasClass('th') ? 'th' : 'td')
});
RT.classes.push(header.prop('title').trim());
RT.titles.push(header.prop('title').trim());
if (!header.hasClass('hidden')) {
RT.fields.push({
idx: idx++,
html: header.html().trim().split('<br>')[0],
l2: header.hasClass('l2'),
rowspan2: header.hasClass('rowspan2'),
type: (header.hasClass('th') ? 'th' : 'td')
});
RT.classes.push(header.prop('title').trim());
RT.titles.push(header.prop('title').trim());
}
});
this.source.find('tbody tr').each(function () {
var ele = $(this);
Expand Down
6 changes: 3 additions & 3 deletions public/js/functions.min.js

Large diffs are not rendered by default.

12 changes: 0 additions & 12 deletions src/Controller/Web/Stats/Stats.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,11 @@ class Stats extends Base
* },
* name="stats_listeners"
* )
* @param $_locale
* @param $system
* @param $region
* @return Response
*/
public function listeners(
$_locale,
$system,
$region = ''
) {
Expand Down Expand Up @@ -62,13 +60,11 @@ public function listeners(
* },
* name="stats_listeners_count"
* )
* @param $_locale
* @param $system
* @param $region
* @return Response
*/
public function listeners_count(
$_locale,
$system,
$region = ''
) {
Expand All @@ -87,13 +83,11 @@ public function listeners_count(
* },
* name="stats_logs_count"
* )
* @param $_locale
* @param $system
* @param $region
* @return Response
*/
public function logs_count(
$_locale,
$system,
$region = ''
) {
Expand All @@ -112,13 +106,11 @@ public function logs_count(
* },
* name="stats_logs_first"
* )
* @param $_locale
* @param $system
* @param $region
* @return Response
*/
public function logs_first(
$_locale,
$system,
$region = ''
) {
Expand All @@ -137,13 +129,11 @@ public function logs_first(
* },
* name="stats_logs_last"
* )
* @param $_locale
* @param $system
* @param $region
* @return Response
*/
public function logs_last(
$_locale,
$system,
$region = ''
) {
Expand All @@ -163,12 +153,10 @@ public function logs_last(
* },
* name="stats_signals_count"
* )
* @param $_locale
* @param $system
* @return Response
*/
public function signals_count (
$_locale,
$system,
$sys
) {
Expand Down
20 changes: 11 additions & 9 deletions src/js/responsive_table.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,17 @@ var RT = {
var idx = 0;
this.source.find('thead tr th').each(function () {
var header = $(this);
RT.fields.push({
idx: idx++,
html: header.html().trim().split('<br>')[0],
l2: header.hasClass('l2'),
rowspan2: header.hasClass('rowspan2'),
type: (header.hasClass('th') ? 'th' : 'td')
});
RT.classes.push(header.prop('title').trim());
RT.titles.push(header.prop('title').trim());
if (!header.hasClass('hidden')) {
RT.fields.push({
idx: idx++,
html: header.html().trim().split('<br>')[0],
l2: header.hasClass('l2'),
rowspan2: header.hasClass('rowspan2'),
type: (header.hasClass('th') ? 'th' : 'td')
});
RT.classes.push(header.prop('title').trim());
RT.titles.push(header.prop('title').trim());
}
});
this.source.find('tbody tr').each(function () {
var ele = $(this);
Expand Down

0 comments on commit acd87f8

Please sign in to comment.