webui: Updated all tables to have the same set number of items showing (#6798)

This commit is contained in:
Neil Lathwood 2017-06-09 04:10:30 +01:00 committed by Tony Murray
parent 3dd6628101
commit 4f4719b66a
31 changed files with 31 additions and 19 deletions

View File

@ -222,6 +222,7 @@ var alerts_grid = $("#alerts_'.$unique_id.'").bootgrid({
} }
}, },
url: "ajax_table.php", url: "ajax_table.php",
rowCount: [50, 100, 250, -1],
formatters: { formatters: {
"status": function(column,row) { "status": function(column,row) {
return "<h4><span class=\'label label-"+row.extra+" threeqtr-width\'>" + row.msg + "</span></h4>"; return "<h4><span class=\'label label-"+row.extra+" threeqtr-width\'>" + row.msg + "</span></h4>";

View File

@ -19,6 +19,7 @@ $common_output[] = '
var eventlog_grid = $("#eventlog").bootgrid({ var eventlog_grid = $("#eventlog").bootgrid({
ajax: true, ajax: true,
rowCount: [50, 100, 250, -1],
post: function () post: function ()
{ {
return { return {

View File

@ -19,6 +19,7 @@ $common_output[] = '
var syslog_grid = $("#syslog").bootgrid({ var syslog_grid = $("#syslog").bootgrid({
ajax: true, ajax: true,
rowCount: [50, 100, 250, -1],
post: function () post: function ()
{ {
return { return {

View File

@ -36,6 +36,7 @@ $pagetitle[] = 'Alert Log';
var grid = $("#alertlog").bootgrid({ var grid = $("#alertlog").bootgrid({
ajax: true, ajax: true,
rowCount: [50, 100, 250, -1],
templates: { templates: {
header: '<div id="{{ctx.id}}" class="{{css.header}}"><div class="row"> \ header: '<div id="{{ctx.id}}" class="{{css.header}}"><div class="row"> \
<div class="col-sm-8 actionBar"><span class="pull-left"> \ <div class="col-sm-8 actionBar"><span class="pull-left"> \

View File

@ -72,7 +72,7 @@ var grid = $("#alert-schedule").bootgrid({
"</span></div>"+ "</span></div>"+
"<div class=\"col-sm-4 actionBar\"><p class=\"{{css.search}}\"></p><p class=\"{{css.actions}}\"></p></div></div></div>" "<div class=\"col-sm-4 actionBar\"><p class=\"{{css.search}}\"></p><p class=\"{{css.actions}}\"></p></div></div></div>"
}, },
rowCount: [50,100,250,-1], rowCount: [50, 100, 250, -1],
post: function () post: function ()
{ {
return { return {

View File

@ -159,7 +159,7 @@ include 'includes/modal/new_bill.inc.php';
header: $('#table-header').html() header: $('#table-header').html()
}, },
columnSelection: false, columnSelection: false,
rowCount: [50,100,250,-1], rowCount: [50, 100, 250, -1],
post: function() { post: function() {
return { return {
id: 'bills', id: 'bills',

View File

@ -23,6 +23,7 @@ $pagetitle[] = 'Customers';
var grid = $("#customers").bootgrid({ var grid = $("#customers").bootgrid({
ajax: true, ajax: true,
rowCount: [50, 100, 250, -1],
post: function () post: function ()
{ {
return { return {

View File

@ -103,7 +103,7 @@
var grid = $("#table").bootgrid({ var grid = $("#table").bootgrid({
ajax: true, ajax: true,
rowCount: [50,100,250,-1], rowCount: [50, 100, 250, -1],
post: function () post: function ()
{ {
return { return {

View File

@ -32,7 +32,7 @@
<script> <script>
var grid = $("#mempool").bootgrid({ var grid = $("#mempool").bootgrid({
ajax: true, ajax: true,
rowCount: [25,50,100,250,-1], rowCount: [50, 100, 250, -1],
post: function () post: function ()
{ {
return { return {

View File

@ -190,7 +190,7 @@
var grid = $("#edit-ports").bootgrid({ var grid = $("#edit-ports").bootgrid({
ajax: true, ajax: true,
rowCount: [50,100,250,-1], rowCount: [50, 100, 250, -1],
post: function () post: function ()
{ {
return { return {

View File

@ -32,7 +32,7 @@
<script> <script>
var grid = $("#processor").bootgrid({ var grid = $("#processor").bootgrid({
ajax: true, ajax: true,
rowCount: [25,50,100,250,-1], rowCount: [50, 100, 250, -1],
post: function () post: function ()
{ {
return { return {

View File

@ -32,7 +32,7 @@
<script> <script>
var grid = $("#storage").bootgrid({ var grid = $("#storage").bootgrid({
ajax: true, ajax: true,
rowCount: [25,50,100,250,-1], rowCount: [50, 100, 250, -1],
post: function () post: function ()
{ {
return { return {

View File

@ -53,7 +53,7 @@ if (is_mib_poller_enabled($device)) {
<script> <script>
var grid = $("#mibs").bootgrid({ var grid = $("#mibs").bootgrid({
ajax: true, ajax: true,
rowCount: [50,100,250,-1], rowCount: [50, 100, 250, -1],
post: function () post: function ()
{ {
return { return {

View File

@ -16,6 +16,7 @@ $no_refresh = true;
var grid = $("#port-arp").bootgrid({ var grid = $("#port-arp").bootgrid({
ajax: true, ajax: true,
rowCount: [50, 100, 250, -1],
post: function () post: function ()
{ {
return { return {

View File

@ -17,6 +17,7 @@ $no_refresh = true;
var grid = $("#ports-arp").bootgrid({ var grid = $("#ports-arp").bootgrid({
ajax: true, ajax: true,
rowCount: [50, 100, 250, -1],
post: function () post: function ()
{ {
return { return {

View File

@ -23,7 +23,7 @@ $pagetitle[] = 'Hardware';
<script> <script>
var grid = $("#tnmsne").bootgrid({ var grid = $("#tnmsne").bootgrid({
ajax: true, ajax: true,
rowCount: [50,100,250,-1], rowCount: [50, 100, 250, -1],
post: function() post: function()
{ {
return { return {

View File

@ -15,7 +15,7 @@
<script> <script>
var grid = $("#mempool").bootgrid({ var grid = $("#mempool").bootgrid({
ajax: true, ajax: true,
rowCount: [50,100,250,-1], rowCount: [50, 100, 250, -1],
post: function () post: function ()
{ {
return { return {

View File

@ -17,7 +17,7 @@
<script> <script>
var grid = $("#sensors").bootgrid({ var grid = $("#sensors").bootgrid({
ajax: true, ajax: true,
rowCount: [25,50,100,250,-1], rowCount: [50, 100, 250, -1],
post: function () post: function ()
{ {
return { return {

View File

@ -15,7 +15,7 @@
<script> <script>
var grid = $("#storage").bootgrid({ var grid = $("#storage").bootgrid({
ajax: true, ajax: true,
rowCount: [25,50,100,250,-1], rowCount: [50, 100, 250, -1],
post: function () post: function ()
{ {
return { return {

View File

@ -25,6 +25,7 @@ $pagetitle[] = 'Inventory';
var grid = $("#inventory").bootgrid({ var grid = $("#inventory").bootgrid({
ajax: true, ajax: true,
rowCount: [50, 100, 250, -1],
templates: { templates: {
header: "<div id=\"{{ctx.id}}\" class=\"{{css.header}}\"><div class=\"row\">"+ header: "<div id=\"{{ctx.id}}\" class=\"{{css.header}}\"><div class=\"row\">"+
"<div class=\"col-sm-9 actionBar\"><span class=\"pull-left\"><form method=\"post\" action=\"\" class=\"form-inline\" role=\"form\">"+ "<div class=\"col-sm-9 actionBar\"><span class=\"pull-left\"><form method=\"post\" action=\"\" class=\"form-inline\" role=\"form\">"+

View File

@ -34,7 +34,7 @@ if (is_module_enabled('poller', 'mib')) {
<script> <script>
var grid = $("#mibs").bootgrid({ var grid = $("#mibs").bootgrid({
ajax: true, ajax: true,
rowCount: [50,100,250,-1], rowCount: [50, 100, 250, -1],
post: function () post: function ()
{ {
return { return {

View File

@ -39,7 +39,7 @@ if (is_module_enabled('poller', 'mib')) {
<script> <script>
var grid = $("#mibs").bootgrid({ var grid = $("#mibs").bootgrid({
ajax: true, ajax: true,
rowCount: [50,100,250,-1], rowCount: [50, 100, 250, -1],
post: function () post: function ()
{ {
return { return {

View File

@ -45,7 +45,7 @@ echo "<div class='alert alert-info' role='alert'>Cached date: $cache_date</div>"
<script> <script>
var grid = $("#asn").bootgrid({ var grid = $("#asn").bootgrid({
ajax: true, ajax: true,
rowCount: [25,50,100,250,-1], rowCount: [50, 100, 250, -1],
post: function () post: function ()
{ {
return { return {

View File

@ -44,7 +44,7 @@ $asn = $vars['asn'];
<script> <script>
var grid = $("#ixlist").bootgrid({ var grid = $("#ixlist").bootgrid({
ajax: true, ajax: true,
rowCount: [25,50,100,250,-1], rowCount: [50, 100, 250, -1],
post: function () post: function ()
{ {
return { return {

View File

@ -48,7 +48,7 @@ $status = $vars['status'];
<script> <script>
var grid = $("#ixpeers").bootgrid({ var grid = $("#ixpeers").bootgrid({
ajax: true, ajax: true,
rowCount: [25,50,100,250,-1], rowCount: [50, 100, 250, -1],
templates: { templates: {
header: header:
"<div id=\"{{ctx.id}}\" class=\"{{css.header}}\"><div class=\"row\">"+ "<div id=\"{{ctx.id}}\" class=\"{{css.header}}\"><div class=\"row\">"+

View File

@ -26,7 +26,7 @@ searchbar = "<div id=\"{{ctx.id}}\" class=\"{{css.header}}\"><div class=\"row\">
var grid = $("#poll-log").bootgrid({ var grid = $("#poll-log").bootgrid({
ajax: true, ajax: true,
rowCount: [50,100,250,-1], rowCount: [50, 100, 250, -1],
columnSelection: false, columnSelection: false,
templates: { templates: {
header: searchbar header: searchbar

View File

@ -20,6 +20,7 @@
var grid = $("#arp-search").bootgrid({ var grid = $("#arp-search").bootgrid({
ajax: true, ajax: true,
rowCount: [50, 100, 250, -1],
templates: { templates: {
header: "<div id=\"{{ctx.id}}\" class=\"{{css.header}}\"><div class=\"row\">"+ header: "<div id=\"{{ctx.id}}\" class=\"{{css.header}}\"><div class=\"row\">"+
"<div class=\"col-sm-9 actionBar\"><span class=\"pull-left\">"+ "<div class=\"col-sm-9 actionBar\"><span class=\"pull-left\">"+

View File

@ -18,6 +18,7 @@
var grid = $("#ipv4-search").bootgrid({ var grid = $("#ipv4-search").bootgrid({
ajax: true, ajax: true,
rowCount: [50, 100, 250, -1],
templates: { templates: {
header: "<div id=\"{{ctx.id}}\" class=\"{{css.header}}\"><div class=\"row\">"+ header: "<div id=\"{{ctx.id}}\" class=\"{{css.header}}\"><div class=\"row\">"+
"<div class=\"col-sm-9 actionBar\"><span class=\"pull-left\">"+ "<div class=\"col-sm-9 actionBar\"><span class=\"pull-left\">"+

View File

@ -17,6 +17,7 @@
<script> <script>
var grid = $("#ipv6-search").bootgrid({ var grid = $("#ipv6-search").bootgrid({
ajax: true, ajax: true,
rowCount: [50, 100, 250, -1],
templates: { templates: {
header: "<div id=\"{{ctx.id}}\" class=\"{{css.header}}\"><div class=\"row\">"+ header: "<div id=\"{{ctx.id}}\" class=\"{{css.header}}\"><div class=\"row\">"+
"<div class=\"col-sm-9 actionBar\"><span class=\"pull-left\">"+ "<div class=\"col-sm-9 actionBar\"><span class=\"pull-left\">"+

View File

@ -18,6 +18,7 @@
var grid = $("#mac-search").bootgrid({ var grid = $("#mac-search").bootgrid({
ajax: true, ajax: true,
rowCount: [50, 100, 250, -1],
templates: { templates: {
header: "<div id=\"{{ctx.id}}\" class=\"{{css.header}}\"><div class=\"row\">"+ header: "<div id=\"{{ctx.id}}\" class=\"{{css.header}}\"><div class=\"row\">"+
"<div class=\"col-sm-9 actionBar\"><span class=\"pull-left\">"+ "<div class=\"col-sm-9 actionBar\"><span class=\"pull-left\">"+

View File

@ -17,7 +17,7 @@
<script> <script>
var grid = $("#sensors").bootgrid({ var grid = $("#sensors").bootgrid({
ajax: true, ajax: true,
rowCount: [25,50,100,250,-1], rowCount: [50, 100, 250, -1],
post: function () post: function ()
{ {
return { return {