Übrnahme der Einheiten

launch.json
   -Port für Mongo

public/javascript/script.js
   - Einheite richtig mit abspeichern

package.json:
  "version": "1.2.1",
  "date": "2023-07-06",
This commit is contained in:
rxf
2023-07-06 14:40:51 +02:00
parent 0b82819524
commit ed458b209a
3 changed files with 5 additions and 4 deletions

2
.vscode/launch.json vendored
View File

@@ -13,7 +13,7 @@
], ],
"program": "${workspaceFolder}/bin/www", "program": "${workspaceFolder}/bin/www",
"env": { "env": {
"MONGOPORT": "27098" "MONGOPORT": "27017"
} }
} }
] ]

View File

@@ -1,7 +1,7 @@
{ {
"name": "spritzschema", "name": "spritzschema",
"version": "1.2.0", "version": "1.2.1",
"date": "2023-06-08", "date": "2023-07-06",
"private": true, "private": true,
"scripts": { "scripts": {
"start": "node ./bin/www >>/var/log/spritzschema.log 2>&1" "start": "node ./bin/www >>/var/log/spritzschema.log 2>&1"

View File

@@ -36,7 +36,8 @@ document.addEventListener('DOMContentLoaded', async function () {
async function enterEinheit (e) { async function enterEinheit (e) {
let field = e.target; let field = e.target;
curEinheit = field.value curEinheit = parseInt(field.value)
schema.einheit = curEinheit
} }
function buildCellHtml(day, einheit) { function buildCellHtml(day, einheit) {