From 47eef04643292dae5c2b5666f8733f48b5d15cdf Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Wed, 12 Feb 2020 01:19:59 -0600 Subject: [PATCH] fix #45 --- src/onionrcommands/daemonlaunch/__init__.py | 2 +- static-data/www/mail/closesettings.js | 16 ++++++------ static-data/www/mail/index.html | 27 ++++++++++++++++----- static-data/www/mail/mail.css | 14 ++++++++--- 4 files changed, 39 insertions(+), 20 deletions(-) diff --git a/src/onionrcommands/daemonlaunch/__init__.py b/src/onionrcommands/daemonlaunch/__init__.py index b8fc50fd..10e58d98 100755 --- a/src/onionrcommands/daemonlaunch/__init__.py +++ b/src/onionrcommands/daemonlaunch/__init__.py @@ -101,7 +101,7 @@ def daemon(): if config.get('general.display_header', True): logoheader.header("") if QUOTE[1]: - logger.info("\u001b[33m\033[F" + bordered(QUOTE[0] + '\n' + QUOTE[1]), terminal=True) + logger.info("\u001b[33m\033[F" + bordered(QUOTE[0] + '\n -' + QUOTE[1]), terminal=True) else: logger.info("\u001b[33m\033[F" + bordered(QUOTE[0]), terminal=True) diff --git a/static-data/www/mail/closesettings.js b/static-data/www/mail/closesettings.js index 2bef13cd..5f91cc5b 100644 --- a/static-data/www/mail/closesettings.js +++ b/static-data/www/mail/closesettings.js @@ -17,14 +17,12 @@ along with this program. If not, see . */ -var setCloseSettingsModal = function(){ - var closeButtonElements = document.getElementsByClassName('closeSettingsModal') - - for (i = 0; i < closeButtonElements; i++){ - closeButtonElements[i].onclick = function(){ - document.getElementById('settingsModal').classList.remove('is-active') - } - } +document.getElementById('closeSettingsModalButton').onclick = function(){ + document.getElementById('settingsModal').classList.remove('is-active') + setActiveTab('inbox') } -setCloseSettingsModal() \ No newline at end of file +document.querySelector("#settingsModal .modal-background").onclick = function(){ + document.getElementById('settingsModal').classList.remove('is-active') + setActiveTab('inbox') +} diff --git a/static-data/www/mail/index.html b/static-data/www/mail/index.html index 0861bbb7..c3233a6e 100755 --- a/static-data/www/mail/index.html +++ b/static-data/www/mail/index.html @@ -18,9 +18,9 @@ - + @@ -121,7 +121,7 @@
To:
- Subject:
@@ -135,12 +135,12 @@