From ed458b209aa1de66b187ed5fca4d9c3104c302bc Mon Sep 17 00:00:00 2001 From: rxf Date: Thu, 6 Jul 2023 14:40:51 +0200 Subject: [PATCH] =?UTF-8?q?=C3=9Cbrnahme=20der=20Einheiten?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit launch.json -Port für Mongo public/javascript/script.js - Einheite richtig mit abspeichern package.json: "version": "1.2.1", "date": "2023-07-06", --- .vscode/launch.json | 2 +- package.json | 4 ++-- public/javascripts/script.js | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 7328e0a..c45d4e0 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -13,7 +13,7 @@ ], "program": "${workspaceFolder}/bin/www", "env": { - "MONGOPORT": "27098" + "MONGOPORT": "27017" } } ] diff --git a/package.json b/package.json index 5e6aca9..c929a98 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "spritzschema", - "version": "1.2.0", - "date": "2023-06-08", + "version": "1.2.1", + "date": "2023-07-06", "private": true, "scripts": { "start": "node ./bin/www >>/var/log/spritzschema.log 2>&1" diff --git a/public/javascripts/script.js b/public/javascripts/script.js index 083e0fd..1a956dd 100644 --- a/public/javascripts/script.js +++ b/public/javascripts/script.js @@ -36,7 +36,8 @@ document.addEventListener('DOMContentLoaded', async function () { async function enterEinheit (e) { let field = e.target; - curEinheit = field.value + curEinheit = parseInt(field.value) + schema.einheit = curEinheit } function buildCellHtml(day, einheit) {