Goups pages dynamically updated the title of the page.

This commit is contained in:
Pierre HUBERT 2018-07-16 09:32:03 +02:00
parent 5c0cdced85
commit 31bbc2326c
3 changed files with 7 additions and 0 deletions

View File

@ -48,6 +48,9 @@ ComunicWeb.pages.groups.pages.group = {
*/ */
display: function(id, info, target){ display: function(id, info, target){
//Update page title
document.title = info.name;
//Create page row //Create page row
var pageRow = createElem2({ var pageRow = createElem2({
appendTo: target, appendTo: target,

View File

@ -116,6 +116,8 @@ ComunicWeb.pages.groups.pages.members = {
*/ */
displayList: function(info, list, users, target){ displayList: function(info, list, users, target){
document.title = info.name + " - Members";
//Append the title of the group //Append the title of the group
createElem2({ createElem2({
appendTo: target, appendTo: target,

View File

@ -92,6 +92,8 @@ ComunicWeb.pages.groups.pages.settings = {
*/ */
display: function(id, settings, target){ display: function(id, settings, target){
document.title = settings.name + " - Settings";
//Create form container //Create form container
var formContainer = createElem2({ var formContainer = createElem2({
appendTo: target, appendTo: target,