From 785e9deb4a7b5dbfe7b240acadf53c4707709653 Mon Sep 17 00:00:00 2001 From: Agnibho Mondal Date: Fri, 21 May 2021 16:02:32 +0530 Subject: [PATCH] Minor tweaks --- www/forms/nursing.schema.json | 10 +++++++--- www/res/script.js | 4 ++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/www/forms/nursing.schema.json b/www/forms/nursing.schema.json index e4871ec..71b9fe2 100644 --- a/www/forms/nursing.schema.json +++ b/www/forms/nursing.schema.json @@ -27,9 +27,13 @@ "description": "Output (ml)", "type": "integer" }, - "io_duration": { - "description": "Intake Output Duration (hour)", - "type": "integer" + "io_from": { + "description": "I/O Since", + "type": "time" + }, + "io_to": { + "description": "I/O Upto", + "type": "time" }, "stool": { "description": "Times stool passed", diff --git a/www/res/script.js b/www/res/script.js index 13628cc..e03934f 100644 --- a/www/res/script.js +++ b/www/res/script.js @@ -19,12 +19,12 @@ $(document).ready(function(){ $("#upload-error").text(""); } }); - $("[name='date']").each(function(){ + $("[type='date']").each(function(){ if($(this).val()==""){ $(this).val(moment().format("YYYY-MM-DD")); } }); - $("[name='time']").each(function(){ + $("[type='time']").each(function(){ if($(this).val()==""){ $(this).val(moment().format("HH:mm")); } -- 2.39.5