From 4f4719b66a6cc4dd34e08e3abced92a8a3eee855 Mon Sep 17 00:00:00 2001 From: Neil Lathwood Date: Fri, 9 Jun 2017 04:10:30 +0100 Subject: [PATCH] webui: Updated all tables to have the same set number of items showing (#6798) --- html/includes/common/alerts.inc.php | 1 + html/includes/common/eventlog.inc.php | 1 + html/includes/common/syslog.inc.php | 1 + html/pages/alert-log.inc.php | 1 + html/pages/alert-schedule.inc.php | 2 +- html/pages/bills.inc.php | 2 +- html/pages/customers.inc.php | 1 + html/pages/device/edit/component.inc.php | 2 +- html/pages/device/edit/mempools.inc.php | 2 +- html/pages/device/edit/ports.inc.php | 2 +- html/pages/device/edit/processors.inc.php | 2 +- html/pages/device/edit/storage.inc.php | 2 +- html/pages/device/mib.inc.php | 2 +- html/pages/device/port/arp.inc.php | 1 + html/pages/device/ports/arp.inc.php | 1 + html/pages/device/tnmsne.inc.php | 2 +- html/pages/health/mempool.inc.php | 2 +- html/pages/health/sensors.inc.php | 2 +- html/pages/health/storage.inc.php | 2 +- html/pages/inventory.inc.php | 1 + html/pages/mib_assoc.inc.php | 2 +- html/pages/mibs.inc.php | 2 +- html/pages/peering/as-selection.inc.php | 2 +- html/pages/peering/ix-list.inc.php | 2 +- html/pages/peering/ix-peers.inc.php | 2 +- html/pages/poll-log.inc.php | 2 +- html/pages/search/arp.inc.php | 1 + html/pages/search/ipv4.inc.php | 1 + html/pages/search/ipv6.inc.php | 1 + html/pages/search/mac.inc.php | 1 + html/pages/wireless/sensors.inc.php | 2 +- 31 files changed, 31 insertions(+), 19 deletions(-) diff --git a/html/includes/common/alerts.inc.php b/html/includes/common/alerts.inc.php index 97e4d37fb0..5b9fafb97a 100644 --- a/html/includes/common/alerts.inc.php +++ b/html/includes/common/alerts.inc.php @@ -222,6 +222,7 @@ var alerts_grid = $("#alerts_'.$unique_id.'").bootgrid({ } }, url: "ajax_table.php", + rowCount: [50, 100, 250, -1], formatters: { "status": function(column,row) { return "

" + row.msg + "

"; diff --git a/html/includes/common/eventlog.inc.php b/html/includes/common/eventlog.inc.php index f5f868fcc5..b5f363b03c 100644 --- a/html/includes/common/eventlog.inc.php +++ b/html/includes/common/eventlog.inc.php @@ -19,6 +19,7 @@ $common_output[] = ' var eventlog_grid = $("#eventlog").bootgrid({ ajax: true, + rowCount: [50, 100, 250, -1], post: function () { return { diff --git a/html/includes/common/syslog.inc.php b/html/includes/common/syslog.inc.php index 1a82cee159..3c675a04c4 100644 --- a/html/includes/common/syslog.inc.php +++ b/html/includes/common/syslog.inc.php @@ -19,6 +19,7 @@ $common_output[] = ' var syslog_grid = $("#syslog").bootgrid({ ajax: true, + rowCount: [50, 100, 250, -1], post: function () { return { diff --git a/html/pages/alert-log.inc.php b/html/pages/alert-log.inc.php index 4244366062..3aa0a54e8f 100644 --- a/html/pages/alert-log.inc.php +++ b/html/pages/alert-log.inc.php @@ -36,6 +36,7 @@ $pagetitle[] = 'Alert Log'; var grid = $("#alertlog").bootgrid({ ajax: true, + rowCount: [50, 100, 250, -1], templates: { header: '
\
\ diff --git a/html/pages/alert-schedule.inc.php b/html/pages/alert-schedule.inc.php index 09d1a14d5b..7a0c7c1e89 100644 --- a/html/pages/alert-schedule.inc.php +++ b/html/pages/alert-schedule.inc.php @@ -72,7 +72,7 @@ var grid = $("#alert-schedule").bootgrid({ "
"+ "

" }, - rowCount: [50,100,250,-1], + rowCount: [50, 100, 250, -1], post: function () { return { diff --git a/html/pages/bills.inc.php b/html/pages/bills.inc.php index 44d2af01c2..88487c3a46 100644 --- a/html/pages/bills.inc.php +++ b/html/pages/bills.inc.php @@ -159,7 +159,7 @@ include 'includes/modal/new_bill.inc.php'; header: $('#table-header').html() }, columnSelection: false, - rowCount: [50,100,250,-1], + rowCount: [50, 100, 250, -1], post: function() { return { id: 'bills', diff --git a/html/pages/customers.inc.php b/html/pages/customers.inc.php index a23fbf26b3..20289cc394 100644 --- a/html/pages/customers.inc.php +++ b/html/pages/customers.inc.php @@ -23,6 +23,7 @@ $pagetitle[] = 'Customers'; var grid = $("#customers").bootgrid({ ajax: true, + rowCount: [50, 100, 250, -1], post: function () { return { diff --git a/html/pages/device/edit/component.inc.php b/html/pages/device/edit/component.inc.php index 5bf25ba197..cdddd9bfd7 100644 --- a/html/pages/device/edit/component.inc.php +++ b/html/pages/device/edit/component.inc.php @@ -103,7 +103,7 @@ var grid = $("#table").bootgrid({ ajax: true, - rowCount: [50,100,250,-1], + rowCount: [50, 100, 250, -1], post: function () { return { diff --git a/html/pages/device/edit/mempools.inc.php b/html/pages/device/edit/mempools.inc.php index 928cb8168e..72647699a0 100755 --- a/html/pages/device/edit/mempools.inc.php +++ b/html/pages/device/edit/mempools.inc.php @@ -32,7 +32,7 @@