From 31bbc2326c31de293bfb39f1f71a8770f8254196 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Mon, 16 Jul 2018 09:32:03 +0200 Subject: [PATCH] Goups pages dynamically updated the title of the page. --- assets/js/pages/groups/pages/group.js | 3 +++ assets/js/pages/groups/pages/members.js | 2 ++ assets/js/pages/groups/pages/settings.js | 2 ++ 3 files changed, 7 insertions(+) diff --git a/assets/js/pages/groups/pages/group.js b/assets/js/pages/groups/pages/group.js index 0a4d4459..86558ecd 100644 --- a/assets/js/pages/groups/pages/group.js +++ b/assets/js/pages/groups/pages/group.js @@ -48,6 +48,9 @@ ComunicWeb.pages.groups.pages.group = { */ display: function(id, info, target){ + //Update page title + document.title = info.name; + //Create page row var pageRow = createElem2({ appendTo: target, diff --git a/assets/js/pages/groups/pages/members.js b/assets/js/pages/groups/pages/members.js index d7993b36..21bb23a7 100644 --- a/assets/js/pages/groups/pages/members.js +++ b/assets/js/pages/groups/pages/members.js @@ -116,6 +116,8 @@ ComunicWeb.pages.groups.pages.members = { */ displayList: function(info, list, users, target){ + document.title = info.name + " - Members"; + //Append the title of the group createElem2({ appendTo: target, diff --git a/assets/js/pages/groups/pages/settings.js b/assets/js/pages/groups/pages/settings.js index ca6b7ffd..e75fae4c 100644 --- a/assets/js/pages/groups/pages/settings.js +++ b/assets/js/pages/groups/pages/settings.js @@ -92,6 +92,8 @@ ComunicWeb.pages.groups.pages.settings = { */ display: function(id, settings, target){ + document.title = settings.name + " - Settings"; + //Create form container var formContainer = createElem2({ appendTo: target,