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;
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,
});
</div>
<div id="editor-container"></div>
<div class="save_button">
- <button id="btn_save_doc" onclick="saveRTF($log_id, 'store'); return false;">Save</button>
+ <input type="button" id="btn_save_doc" onclick="saveRTF(0, 'store'); return false;" value="Save"/>
</div>
</td></tr></table>
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) {