From 3ebee6955d6dccb42d687dd62951ef412a4f31dc Mon Sep 17 00:00:00 2001 From: Metabox Date: Sun, 21 Jul 2019 09:27:58 +1000 Subject: [PATCH] minor. --- htdocs/cgi-bin/json.cgi | 6 +++++- htdocs/cgi-bin/main.cgi | 2 +- htdocs/cgi-bin/wsrc/main.js | 8 ++++---- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/htdocs/cgi-bin/json.cgi b/htdocs/cgi-bin/json.cgi index f352241..9219cf2 100755 --- a/htdocs/cgi-bin/json.cgi +++ b/htdocs/cgi-bin/json.cgi @@ -44,6 +44,8 @@ my $sid = $session->id(); my $dbname = "";#$session->param('database'); my $userid = $session->param('alias'); my $password = $session->param('passw'); +my $action = $session->param('action'); +my $lid = $session->param('id'); if ($AUTHORITY) { $userid = $password = $AUTHORITY; @@ -75,7 +77,9 @@ $today->set_time_zone($TIME_ZONE); my $json = JSON->new->utf8->space_after->pretty->allow_blessed->encode ({date => DateTime::Format::SQLite->format_datetime($today), origin => "LifeLog.".$RELEASE_VER, - response => "Feature Under Development!" + response => "Feature Under Development!", + alias => $userid, + log_id => $lid, }); diff --git a/htdocs/cgi-bin/main.cgi b/htdocs/cgi-bin/main.cgi index f4dcf16..68fe14e 100755 --- a/htdocs/cgi-bin/main.cgi +++ b/htdocs/cgi-bin/main.cgi @@ -1081,7 +1081,7 @@ return qq{
- +
diff --git a/htdocs/cgi-bin/wsrc/main.js b/htdocs/cgi-bin/wsrc/main.js index fbf27cb..35b14da 100644 --- a/htdocs/cgi-bin/wsrc/main.js +++ b/htdocs/cgi-bin/wsrc/main.js @@ -471,10 +471,10 @@ function dateDiffSelected() { function saveRTF(id, action) { // alert(JSON.stringify(QUILL.getContents())); - //Dissabled on new log entry. Save and edit, obtains id. For now. @2019-07-20 - if (id > 0) { - $.post('json.cgi?action=' + action + '&id=' + id, { doc: JSON.stringify(QUILL.getContents()) }, saveRTFResult); - } + //Disabled on new log entry. Save and edit, obtains id. For now. @2019-07-20 + //if (id > 0) { + $.post('json.cgi?action=' + action + '&id=' + id, { doc: JSON.stringify(QUILL.getContents()) }, saveRTFResult); + //} } function saveRTFResult(result) { -- 2.34.1