This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git


The following commit(s) were added to refs/heads/master by this push:
     new 5f95d23  Add title for individual mail threads
5f95d23 is described below

commit 5f95d235f9ec8cbcceeee58c6202240dbb88df81
Author: Sebb <[email protected]>
AuthorDate: Sun Nov 14 16:11:48 2021 +0000

    Add title for individual mail threads
    
    This finally fixes #130
---
 webui/js/ponymail.js                | 1 +
 webui/js/source/construct-thread.js | 1 +
 2 files changed, 2 insertions(+)

diff --git a/webui/js/ponymail.js b/webui/js/ponymail.js
index 3095f96..0af10ae 100644
--- a/webui/js/ponymail.js
+++ b/webui/js/ponymail.js
@@ -912,6 +912,7 @@ function construct_single_thread(state, json) {
     } else {
         div.setAttribute("class", "email_placeholder");
     }
+    document.title = json.emails[0].subject + "-" + prefs.title
     div.style.display = "block";
     let thread = json.thread;
     let email = construct_thread(thread);
diff --git a/webui/js/source/construct-thread.js 
b/webui/js/source/construct-thread.js
index aae213c..548e52f 100644
--- a/webui/js/source/construct-thread.js
+++ b/webui/js/source/construct-thread.js
@@ -137,6 +137,7 @@ function construct_single_thread(state, json) {
     } else {
         div.setAttribute("class", "email_placeholder");
     }
+    document.title = json.emails[0].subject + "-" + prefs.title
     div.style.display = "block";
     let thread = json.thread;
     let email = construct_thread(thread);

Reply via email to