www/js/profile_water.js

changeset 785
aa79acfdf8a9
parent 768
ae1195153fa2
--- a/www/js/profile_water.js	Sun Feb 06 20:06:46 2022 +0100
+++ b/www/js/profile_water.js	Thu Feb 10 22:15:10 2022 +0100
@@ -1,5 +1,5 @@
 /*****************************************************************************
- * Copyright (C) 2014-2021
+ * Copyright (C) 2014-2022
  *
  * Michiel Broek <mbroek at mbse dot eu>
  *
@@ -51,6 +51,7 @@
   cache: false,
   datafields: [
    { name: 'record', type: 'number' },
+   { name: 'uuid', type: 'string' },
    { name: 'name', type: 'string' },
    { name: 'calcium', type: 'float' },
    { name: 'bicarbonate', type: 'float' },
@@ -175,6 +176,7 @@
    addButton.click(function(event) {
     editrow = -1;
     $('#popupWindow').jqxWindow({ position: { x: 110, y: 30 } });
+    dataRecord.uuid = '';
     $('#name').val('');
     $('#calcium').val(0);
     $('#bicarbonate').val(0);
@@ -309,6 +311,7 @@
   }
   row = {
    record: rowID,
+   uuid: dataRecord.uuid,
    name: $('#name').val(),
    calcium: parseFloat($('#calcium').jqxNumberInput('decimal')),
    bicarbonate: parseFloat($('#bicarbonate').jqxNumberInput('decimal')),

mercurial