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

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

commit ead725c233c546c1757c3bf308b0ecc04a1cd41d
Author: Daniel Gruno <[email protected]>
AuthorDate: Sat Nov 13 17:20:41 2021 +0100

    Set window title to page title.
    
    This addresses #130
---
 webui/js/ponymail.js               | 2 +-
 webui/js/source/listview-header.js | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/webui/js/ponymail.js b/webui/js/ponymail.js
index 832ffa2..75cde7d 100644
--- a/webui/js/ponymail.js
+++ b/webui/js/ponymail.js
@@ -2181,7 +2181,7 @@ function listview_header(state, json) {
     if (json.searchParams.q && json.searchParams.q.length || 
(json.searchParams.d || "").match(/=/)) {
         list_title = "Custom search";
     }
-
+    document.title = list_title + " - " + prefs.title;
     document.getElementById('listview_title').innerText = list_title + ":";
     let download = new HTML('button', {
         title: 'Download as mbox archive',
diff --git a/webui/js/source/listview-header.js 
b/webui/js/source/listview-header.js
index 2ee9984..53211e3 100644
--- a/webui/js/source/listview-header.js
+++ b/webui/js/source/listview-header.js
@@ -38,7 +38,7 @@ function listview_header(state, json) {
     if (json.searchParams.q && json.searchParams.q.length || 
(json.searchParams.d || "").match(/=/)) {
         list_title = "Custom search";
     }
-
+    document.title = list_title + " - " + prefs.title;
     document.getElementById('listview_title').innerText = list_title + ":";
     let download = new HTML('button', {
         title: 'Download as mbox archive',

Reply via email to