Ready to get general information about the users

This commit is contained in:
Pierre
2018-04-15 15:02:32 +02:00
parent 6288af5899
commit 3f4b2ea290
6 changed files with 51 additions and 2 deletions

View File

@ -52,7 +52,7 @@ ComunicWeb.pages.settings.main = {
var section = ComunicWeb.pages.settings.sectionsList[section];
//Update document title
document.title += section.title;
document.title += " - " + section.title;
//Call handler
eval(section.handler + "(args, rightArea);");

View File

@ -60,6 +60,9 @@ ComunicWeb.pages.settings.navigationPane = {
type: "a",
innerHTML: "<i class='fa fa-user'></i> General"
});
sectionGeneralLink.onclick = function(){
openPage("settings/general");
};
}
}

View File

@ -13,7 +13,24 @@ ComunicWeb.pages.settings.sections.general = {
* @param {HTMLElement} target The target for the page
*/
open: function(args, target){
alert("hey");
//Create a box
var box = createElem2({
appendTo: target,
type: "div",
class: "box box-primary"
});
//Create box body
var boxBody = createElem2({
appendTo: box,
type: "div",
class: "box-body"
});
//Display loading message
var loadingMsg = ComunicWeb.common.messages.createCalloutElem("Loading", "Please wait while this page is loading...", "info");
boxBody.appendChild(loadingMsg);
}
};