Add total count in the statusbar for inventory and profile databases.

Sat, 13 Jun 2020 13:50:57 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Sat, 13 Jun 2020 13:50:57 +0200
changeset 702
f0896a6f9b64
parent 701
3ce3df681be0
child 703
faeede125639

Add total count in the statusbar for inventory and profile databases.

www/js/inv_equipments.js file | annotate | diff | comparison | revisions
www/js/inv_fermentables.js file | annotate | diff | comparison | revisions
www/js/inv_hops.js file | annotate | diff | comparison | revisions
www/js/inv_miscs.js file | annotate | diff | comparison | revisions
www/js/inv_suppliers.js file | annotate | diff | comparison | revisions
www/js/inv_waters.js file | annotate | diff | comparison | revisions
www/js/inv_yeasts.js file | annotate | diff | comparison | revisions
www/js/profile_fermentation.js file | annotate | diff | comparison | revisions
www/js/profile_mash.js file | annotate | diff | comparison | revisions
www/js/profile_styles.js file | annotate | diff | comparison | revisions
www/js/profile_water.js file | annotate | diff | comparison | revisions
--- a/www/js/inv_equipments.js	Sat Jun 13 12:14:26 2020 +0200
+++ b/www/js/inv_equipments.js	Sat Jun 13 13:50:57 2020 +0200
@@ -221,6 +221,8 @@
   theme: theme,
   showstatusbar: true,
   renderstatusbar: function(statusbar) {
+   var rowCount = $("#jqxgrid").jqxGrid('getrows').length;
+   statusbar.append('<div style="float: left; margin: 8px; color: orange !important;">Aantal items: ' + rowCount + '</div>');
    var addButton, container = $('<div style="overflow: hidden; position: relative; margin: 5px;"></div>');
    addButton = $('<div style="float: right; margin-right: 15px;"><img style="position: relative; margin-top: 2px;" ' +
      'src="images/add.png"/><span style="margin-left: 4px; position: relative; top: -4px;">Nieuw</span></div>');
--- a/www/js/inv_fermentables.js	Sat Jun 13 12:14:26 2020 +0200
+++ b/www/js/inv_fermentables.js	Sat Jun 13 13:50:57 2020 +0200
@@ -193,6 +193,8 @@
   theme: theme,
   showstatusbar: true,
   renderstatusbar: function(statusbar) {
+   var rowCount = $("#jqxgrid").jqxGrid('getrows').length;
+   statusbar.append('<div style="float: left; margin: 8px; color: orange !important;">Aantal items: ' + rowCount + '</div>');
    var container, addButton, impButton;
    container = $('<div style="overflow: hidden; position: relative; margin: 5px;"></div>');
    addButton = $('<div style="float: right; margin-right: 15px;"><img style="position: relative; margin-top: 2px;" ' +
--- a/www/js/inv_hops.js	Sat Jun 13 12:14:26 2020 +0200
+++ b/www/js/inv_hops.js	Sat Jun 13 13:50:57 2020 +0200
@@ -176,6 +176,8 @@
   theme: theme,
   showstatusbar: true,
   renderstatusbar: function(statusbar) {
+   var rowCount = $("#jqxgrid").jqxGrid('getrows').length;
+   statusbar.append('<div style="float: left; margin: 8px; color: orange !important;">Aantal items: ' + rowCount + '</div>');
    var container, addButton, impButton;
    container = $('<div style="overflow: hidden; position: relative; margin: 5px;"></div>');
    addButton = $('<div style="float: right; margin-right: 15px;"><img style="position: relative; margin-top: 2px;" ' +
--- a/www/js/inv_miscs.js	Sat Jun 13 12:14:26 2020 +0200
+++ b/www/js/inv_miscs.js	Sat Jun 13 13:50:57 2020 +0200
@@ -176,6 +176,8 @@
   theme: theme,
   showstatusbar: true,
   renderstatusbar: function(statusbar) {
+   var rowCount = $("#jqxgrid").jqxGrid('getrows').length;
+   statusbar.append('<div style="float: left; margin: 8px; color: orange !important;">Aantal items: ' + rowCount + '</div>');
    var container = $('<div style="overflow: hidden; position: relative; margin: 5px;"></div>');
    var addButton = $('<div style="float: right; margin-right: 15px;"><img style="position: relative; margin-top: 2px;" ' +
      'src="images/add.png"/><span style="margin-left: 4px; position: relative; top: -4px;">Nieuw</span></div>');
--- a/www/js/inv_suppliers.js	Sat Jun 13 12:14:26 2020 +0200
+++ b/www/js/inv_suppliers.js	Sat Jun 13 13:50:57 2020 +0200
@@ -150,6 +150,8 @@
   theme: theme,
   showstatusbar: true,
   renderstatusbar: function(statusbar) {
+   var rowCount = $("#jqxgrid").jqxGrid('getrows').length;
+   statusbar.append('<div style="float: left; margin: 8px; color: orange !important;">Aantal items: ' + rowCount + '</div>');
    var addButton, container = $('<div style="overflow: hidden; position: relative; margin: 5px;"></div>');
    addButton = $('<div style="float: right; margin-right: 15px;"><img style="position: relative; margin-top: 2px;" ' +
      'src="images/add.png"/><span style="margin-left: 4px; position: relative; top: -3px;">Nieuw</span></div>');
--- a/www/js/inv_waters.js	Sat Jun 13 12:14:26 2020 +0200
+++ b/www/js/inv_waters.js	Sat Jun 13 13:50:57 2020 +0200
@@ -158,6 +158,8 @@
   theme: theme,
   showstatusbar: true,
   renderstatusbar: function(statusbar) {
+   var rowCount = $("#jqxgrid").jqxGrid('getrows').length;
+   statusbar.append('<div style="float: left; margin: 8px; color: orange !important;">Aantal items: ' + rowCount + '</div>');
    var addButton, container = $('<div style="overflow: hidden; position: relative; margin: 5px;"></div>');
    addButton = $('<div style="float: right; margin-right: 15px;"><img style="position: relative; margin-top: 2px;" ' +
      'src="images/add.png"/><span style="margin-left: 4px; position: relative; top: -4px;">Nieuw</span></div>');
--- a/www/js/inv_yeasts.js	Sat Jun 13 12:14:26 2020 +0200
+++ b/www/js/inv_yeasts.js	Sat Jun 13 13:50:57 2020 +0200
@@ -233,6 +233,8 @@
   theme: theme,
   showstatusbar: true,
   renderstatusbar: function(statusbar) {
+   var rowCount = $("#jqxgrid").jqxGrid('getrows').length;
+   statusbar.append('<div style="float: left; margin: 8px; color: orange !important;">Aantal items: ' + rowCount + '</div>');
    var container, addButton, impButton;
    container = $('<div style="overflow: hidden; position: relative; margin: 5px;"></div>');
    addButton = $('<div style="float: right; margin-right: 15px;"><img style="position: relative; margin-top: 2px;" ' +
--- a/www/js/profile_fermentation.js	Sat Jun 13 12:14:26 2020 +0200
+++ b/www/js/profile_fermentation.js	Sat Jun 13 13:50:57 2020 +0200
@@ -233,6 +233,8 @@
   theme: theme,
   showstatusbar: true,
   renderstatusbar: function(statusbar) {
+   var rowCount = $("#jqxgrid").jqxGrid('getrows').length;
+   statusbar.append('<div style="float: left; margin: 8px; color: orange !important;">Aantal items: ' + rowCount + '</div>');
    var container = $('<div style="overflow: hidden; position: relative; margin: 5px;"></div>');
    var addButton = $('<div style="float: right; margin-right: 15px;"><img style="position: relative; margin-top: 2px;" ' +
      'src="images/add.png"/><span style="margin-left: 4px; position: relative; top: -4px;">Nieuw</span></div>');
--- a/www/js/profile_mash.js	Sat Jun 13 12:14:26 2020 +0200
+++ b/www/js/profile_mash.js	Sat Jun 13 13:50:57 2020 +0200
@@ -269,6 +269,8 @@
   theme: theme,
   showstatusbar: true,
   renderstatusbar: function(statusbar) {
+   var rowCount = $("#jqxgrid").jqxGrid('getrows').length;
+   statusbar.append('<div style="float: left; margin: 8px; color: orange !important;">Aantal items: ' + rowCount + '</div>');
    var container = $('<div style="overflow: hidden; position: relative; margin: 5px;"></div>');
    var addButton = $('<div style="float: right; margin-right: 15px;"><img style="position: relative; margin-top: 2px;" ' +
      'src="images/add.png"/><span style="margin-left: 4px; position: relative; top: -4px;">Add</span></div>');
--- a/www/js/profile_styles.js	Sat Jun 13 12:14:26 2020 +0200
+++ b/www/js/profile_styles.js	Sat Jun 13 13:50:57 2020 +0200
@@ -177,6 +177,8 @@
   theme: theme,
   showstatusbar: true,
   renderstatusbar: function(statusbar) {
+   var rowCount = $("#jqxgrid").jqxGrid('getrows').length;
+   statusbar.append('<div style="float: left; margin: 8px; color: orange !important;">Aantal items: ' + rowCount + '</div>');
    var container, addButton, impButton;
    container = $('<div style="overflow: hidden; position: relative; margin: 5px;"></div>');
    addButton = $('<div style="float: right; margin-right: 15px;"><img style="position: relative; margin-top: 2px;" ' +
--- a/www/js/profile_water.js	Sat Jun 13 12:14:26 2020 +0200
+++ b/www/js/profile_water.js	Sat Jun 13 13:50:57 2020 +0200
@@ -148,6 +148,8 @@
   theme: theme,
   showstatusbar: true,
   renderstatusbar: function(statusbar) {
+   var rowCount = $("#jqxgrid").jqxGrid('getrows').length;
+   statusbar.append('<div style="float: left; margin: 8px; color: orange !important;">Aantal items: ' + rowCount + '</div>');
    var container = $('<div style="overflow: hidden; position: relative; margin: 5px;"></div>'),
    addButton = $('<div style="float: right; margin-right: 15px;"><img style="position: relative; margin-top: 2px;" ' +
      'src="images/add.png"/><span style="margin-left: 4px; position: relative; top: -4px;">Nieuw</span></div>');

mercurial