From: Agnibho Mondal Date: Fri, 21 May 2021 10:32:32 +0000 (+0530) Subject: Minor tweaks X-Git-Url: https://code.agnibho.com/repo?a=commitdiff_plain;h=785e9deb4a7b5dbfe7b240acadf53c4707709653;p=simpleipd.git Minor tweaks --- 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")); }