From aba8ed2769666485c521daffacb2467c95a840e8 Mon Sep 17 00:00:00 2001 From: Christophe Lejeune Date: Mon, 12 Sep 2022 16:51:45 +0200 Subject: [PATCH] FIX: Prompting the user for full name This continues 3beb91d655659c656520569e0faff65e1f709cbb and 690ae1cc5e8f204d6f89ec5c372b752f781af757 --- app/_attachments/log.js | 6 ++++-- app/templates/diary.html | 6 +++--- app/templates/register.html | 3 ++- app/templates/todo.html | 1 + 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/app/_attachments/log.js b/app/_attachments/log.js index 2223c81..6a263d9 100644 --- a/app/_attachments/log.js +++ b/app/_attachments/log.js @@ -146,12 +146,14 @@ function createUserDoc(user, sponsor, success, error) { if (u.rows.length > 0) fullname += ' ('+user+')'; var obj = { '_id': user, + 'activity': [], 'contributors': [user], - 'fullname': fullname + 'fullname': fullname, + 'order': [] }; if (sponsor && sponsor.length > 0) obj.readers = sponsor; $.ajax({ - url: '../'+user, + url: relpath+user, type: 'PUT', contentType: 'application/json', data: JSON.stringify(obj) diff --git a/app/templates/diary.html b/app/templates/diary.html index 6dfa1aa..3391d74 100644 --- a/app/templates/diary.html +++ b/app/templates/diary.html @@ -113,7 +113,7 @@

{{/list}} {{^list}}{{/list}} @@ -160,9 +160,9 @@

{{i18n.i_ungrounded}}

if ($('.ungrounded').length > 0) $('#ungrounded').removeClass('hidden'); }); + function showMore(){} {{>layoutscript}} {{>logscript}}