mirror of
https://github.com/pierre42100/ComunicWeb
synced 2025-06-19 12:25:16 +00:00
Display the number of notifications on page title.
This commit is contained in:
@ -14,7 +14,7 @@ ComunicWeb.pages.groups.pages.create = {
|
||||
open: function(target){
|
||||
|
||||
//Update page title
|
||||
document.title = "Create a group";
|
||||
ComunicWeb.common.pageTitle.setTitle("Create a group");
|
||||
|
||||
//Create page container
|
||||
var pageContainer = createElem2({
|
||||
|
@ -62,7 +62,7 @@ ComunicWeb.pages.groups.pages.forbidden = {
|
||||
display: function(id, result, target){
|
||||
|
||||
//Update page title
|
||||
document.title = result.name;
|
||||
ComunicWeb.common.pageTitle.setTitle(result.name);
|
||||
|
||||
//Create a box to contain information about registration
|
||||
var box = createElem2({
|
||||
|
@ -49,7 +49,7 @@ ComunicWeb.pages.groups.pages.group = {
|
||||
display: function(id, info, target){
|
||||
|
||||
//Update page title
|
||||
document.title = info.name;
|
||||
ComunicWeb.common.pageTitle.setTitle(info.name);
|
||||
|
||||
//Create page row
|
||||
var pageRow = createElem2({
|
||||
|
@ -61,7 +61,7 @@ ComunicWeb.pages.groups.pages.members = {
|
||||
*/
|
||||
applyGroupInfo: function(id, info, target){
|
||||
|
||||
document.title = info.name + " - Members";
|
||||
ComunicWeb.common.pageTitle.setTitle(info.name + " - Members");
|
||||
|
||||
//Append the title of the group
|
||||
createElem2({
|
||||
|
@ -92,7 +92,7 @@ ComunicWeb.pages.groups.pages.settings = {
|
||||
*/
|
||||
display: function(id, settings, target){
|
||||
|
||||
document.title = settings.name + " - Settings";
|
||||
ComunicWeb.common.pageTitle.setTitle(settings.name + " - Settings");
|
||||
|
||||
//Create form container
|
||||
var formContainer = createElem2({
|
||||
|
@ -14,7 +14,7 @@ ComunicWeb.pages.home.landingPage = {
|
||||
ComunicWeb.debug.logMessage("Open home landing page.");
|
||||
|
||||
//Change page title
|
||||
document.title = "Comunic, a transparent social network";
|
||||
ComunicWeb.common.pageTitle.setTitle("Comunic, a transparent social network");
|
||||
|
||||
//Prepare additional data
|
||||
var additionalData = {
|
||||
|
@ -20,6 +20,9 @@ ComunicWeb.pages.logout = {
|
||||
//Perform logout
|
||||
ComunicWeb.user.userLogin.logoutUser();
|
||||
|
||||
//Reset notifications number
|
||||
ComunicWeb.common.pageTitle.setNotificationsNumber(0);
|
||||
|
||||
//Clean all caches
|
||||
ComunicWeb.common.system.reset(true, "home");
|
||||
|
||||
|
@ -52,7 +52,7 @@ ComunicWeb.pages.settings.main = {
|
||||
var section = ComunicWeb.pages.settings.sectionsList[section];
|
||||
|
||||
//Update document title
|
||||
document.title += " - " + section.title;
|
||||
ComunicWeb.common.pageTitle.setTitle("Settings - " + section.title);
|
||||
|
||||
//Call handler
|
||||
eval(section.handler + "(args, rightArea);");
|
||||
|
@ -72,7 +72,7 @@ ComunicWeb.pages.userPage.accessForbidden = {
|
||||
showBasicInfos: function(userInfos, target){
|
||||
|
||||
//Update page title
|
||||
document.title = userInfos.firstName + " " + userInfos.lastName;
|
||||
ComunicWeb.common.pageTitle.setTitle(userInfos.firstName + " " + userInfos.lastName);
|
||||
|
||||
//Create box root
|
||||
var boxRoot = createElem2({
|
||||
|
@ -121,7 +121,7 @@ ComunicWeb.pages.userPage.main = {
|
||||
displayUserPage: function(infos, params, target){
|
||||
|
||||
//Update page title
|
||||
document.title = infos.firstName + " " + infos.lastName;
|
||||
ComunicWeb.common.pageTitle.setTitle(infos.firstName + " " + infos.lastName);
|
||||
|
||||
//Create the section class content
|
||||
var sectionContent = createElem2({
|
||||
|
Reference in New Issue
Block a user