forro

Forro is a end-to-end encrypted contract form based on PGP.
git clone git://git.defalsify.org/forro.git
Log | Files | Refs | LICENSE

commit 27e4c4b53ec65a37e4c3bfb8ee517f2e618f68c5
parent 5456e6792acda17e11ad2fd826b1b43d45647ff6
Author: lash <dev@holbrook.no>
Date:   Wed, 12 Oct 2022 07:21:25 +0000

Remove text after send

Diffstat:
Mapp.js | 2+-
Mindex.html | 8+++++++-
2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/app.js b/app.js @@ -169,7 +169,7 @@ async function tryDispatch(s, name, email, files) { let r = undefined; try { r = await dispatch(s, name, email, files) - stateChange('ready to send again', STATE['RTS']); + stateChange('successfully sent; ready to send again', STATE['RTS']); } catch(e) { console.error(e); stateChange('send fail: ' + e, STATE['SEND_ERROR']); diff --git a/index.html b/index.html @@ -305,7 +305,13 @@ var Base64 = { <dd><a x-bind:href="g_data_endpoint + '/' + rcpt" x-text="rcpt"></a></dd> <dt>Add message:</dt> <dd> - <textarea cols=72 rows=10 x-model="content" @focus="tryHelpFor('writemsg');"> + <textarea + cols=72 + rows=10 + x-model="content" + @focus="tryHelpFor('writemsg');" + @messagestatechange.window="if (checkState(STATE.ACK_MESSAGE)) {console.log('foo'); content = '';}" + > </textarea> </dd> <dt>Add files:</dt>