From: wbudic Date: Thu, 19 Aug 2021 08:40:32 +0000 (+1000) Subject: layout fixes. X-Git-Url: https://lifelog.hopto.org/gitweb/?a=commitdiff_plain;h=bd36a1be8da9358826f0c6514ed5a3cecad12ed4;p=LifeLog.git layout fixes. --- diff --git a/htdocs/cgi-bin/wsrc/main.css b/htdocs/cgi-bin/wsrc/main.css index 25f4901..979e453 100644 --- a/htdocs/cgi-bin/wsrc/main.css +++ b/htdocs/cgi-bin/wsrc/main.css @@ -343,4 +343,5 @@ a:active { text-align: left; font-family: monospace; opacity: 8; + padding: 5px; } \ No newline at end of file diff --git a/htdocs/cgi-bin/wsrc/main.js b/htdocs/cgi-bin/wsrc/main.js index 2ae18d9..a9e6332 100644 --- a/htdocs/cgi-bin/wsrc/main.js +++ b/htdocs/cgi-bin/wsrc/main.js @@ -1072,7 +1072,9 @@ function saveRTF(id, action) { var bg = $("#fldBG").val(); $.post('json.cgi', {action:'store', id:id, bg:bg, doc: JSON.stringify( QUILL.getContents())},saveRTFResult).fail( - function(response) {dialogModal("Server Error: "+response.status,response.responseText);} + function(response) { + dialogModal("Server Error: "+response.status,response.responseText); + } ); if(is_submit){ $("#idx_cat").value = "SAVING DOCUMENT..."; @@ -1189,6 +1191,9 @@ function loadRTFResult(content, result, prms, quill) { } let msg = json.response; + if(json.error){ + dialogModal("Server Error", json.error); + } if(json.log_id==0){ console.log(msg = "Loaded in Buffer"); $('#btn_zero_doc').show();