mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-26 05:49:22 +00:00
Fixed typo
This commit is contained in:
parent
cf3207ddc9
commit
cca7b536b2
@ -8,7 +8,7 @@
|
|||||||
padding: 10px;
|
padding: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-comments .comment-img-contener {
|
.post-comments .comment-img-container {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4,10 +4,10 @@
|
|||||||
* @author Pierre HUBERT
|
* @author Pierre HUBERT
|
||||||
*/
|
*/
|
||||||
|
|
||||||
.notification-contener p {
|
.notification-container p {
|
||||||
white-space: normal;
|
white-space: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
.notification-contener .notification-creation-time {
|
.notification-container .notification-creation-time {
|
||||||
color: #888888;
|
color: #888888;
|
||||||
}
|
}
|
@ -64,23 +64,23 @@
|
|||||||
/**
|
/**
|
||||||
* Visibility choice
|
* Visibility choice
|
||||||
*/
|
*/
|
||||||
.post-form .post-visiblity-contener {
|
.post-form .post-visiblity-container {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-form .post-visiblity-contener label {
|
.post-form .post-visiblity-container label {
|
||||||
margin-left: 5px;
|
margin-left: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-form .post-visiblity-contener input {
|
.post-form .post-visiblity-container input {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-form .post-visiblity-contener span {
|
.post-form .post-visiblity-container span {
|
||||||
color: #b5bbc8;
|
color: #b5bbc8;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-form .post-visiblity-contener input:checked ~ span {
|
.post-form .post-visiblity-container input:checked ~ span {
|
||||||
color: #111111;
|
color: #111111;
|
||||||
}
|
}
|
@ -81,7 +81,7 @@
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post .post-survey-chart-contener {
|
.post .post-survey-chart-container {
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
* @author Pierre HUBERT
|
* @author Pierre HUBERT
|
||||||
*/
|
*/
|
||||||
|
|
||||||
.page-contener {
|
.page-container {
|
||||||
max-width: 1500px;
|
max-width: 1500px;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
}
|
}
|
@ -189,7 +189,7 @@ var ComunicWeb = {
|
|||||||
/**
|
/**
|
||||||
* Load, parse and show an HTML template
|
* Load, parse and show an HTML template
|
||||||
*/
|
*/
|
||||||
getAndShowTemplate: function(targetElem, dataTemplate, templateURI, nextAction, cleanContener){},
|
getAndShowTemplate: function(targetElem, dataTemplate, templateURI, nextAction, cleanContainer){},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Convert a JSON object into html elements
|
* Convert a JSON object into html elements
|
||||||
@ -199,7 +199,7 @@ var ComunicWeb = {
|
|||||||
/**
|
/**
|
||||||
* Get and show a JSON template
|
* Get and show a JSON template
|
||||||
*/
|
*/
|
||||||
getAndShowJSONtemplate: function(targetElem, templateURI, additionalData, afterParsingJSONtemplate, cleanContener){},
|
getAndShowJSONtemplate: function(targetElem, templateURI, additionalData, afterParsingJSONtemplate, cleanContainer){},
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -230,7 +230,7 @@ var ComunicWeb = {
|
|||||||
network: {
|
network: {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var {object} Cache contener
|
* @var {object} Cache container
|
||||||
*/
|
*/
|
||||||
cache: {},
|
cache: {},
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ ComunicWeb.common.messages.createCalloutElem = function(calloutTitle, calloutMes
|
|||||||
if(!calloutType)
|
if(!calloutType)
|
||||||
var calloutType = "info";
|
var calloutType = "info";
|
||||||
|
|
||||||
//Create callout main contener
|
//Create callout main container
|
||||||
var calloutElem = document.createElement('div');
|
var calloutElem = document.createElement('div');
|
||||||
calloutElem.className = "callout callout-" + calloutType;
|
calloutElem.className = "callout callout-" + calloutType;
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
ComunicWeb.common.network = {
|
ComunicWeb.common.network = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var {object} Cache contener
|
* @var {object} Cache container
|
||||||
*/
|
*/
|
||||||
cache: {},
|
cache: {},
|
||||||
|
|
||||||
@ -100,7 +100,7 @@ ComunicWeb.common.network = {
|
|||||||
|
|
||||||
//Check if error message exists or not
|
//Check if error message exists or not
|
||||||
if(!byId("networkErrorMessage")){
|
if(!byId("networkErrorMessage")){
|
||||||
//Create error message contener
|
//Create error message container
|
||||||
var networkErrorMessage = createElem("div", document.body);
|
var networkErrorMessage = createElem("div", document.body);
|
||||||
networkErrorMessage.id = "networkErrorMessage";
|
networkErrorMessage.id = "networkErrorMessage";
|
||||||
|
|
||||||
|
@ -192,19 +192,19 @@ ComunicWeb.common.page = {
|
|||||||
//Save new url
|
//Save new url
|
||||||
this._current_url = window.location.href.toString();
|
this._current_url = window.location.href.toString();
|
||||||
|
|
||||||
//Get the main contener of the page
|
//Get the main container of the page
|
||||||
var mainContenerElem = byId("wrapper");
|
var mainContainerElem = byId("wrapper");
|
||||||
|
|
||||||
//If we didn't get anything, clean the page and create a wrapper element
|
//If we didn't get anything, clean the page and create a wrapper element
|
||||||
if(!mainContenerElem){
|
if(!mainContainerElem){
|
||||||
var mainContenerElem = this.emptyPage(true);
|
var mainContainerElem = this.emptyPage(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
//We check if the page is a full screen page or not
|
//We check if the page is a full screen page or not
|
||||||
if(pageInfos.disableMenus){
|
if(pageInfos.disableMenus){
|
||||||
//We force the screen to be cleaned
|
//We force the screen to be cleaned
|
||||||
var mainContenerElem = this.emptyPage(true);
|
var mainContainerElem = this.emptyPage(true);
|
||||||
var pageTarget = mainContenerElem; //The page directly goes to the main target
|
var pageTarget = mainContainerElem; //The page directly goes to the main target
|
||||||
}
|
}
|
||||||
//Else
|
//Else
|
||||||
else {
|
else {
|
||||||
@ -214,10 +214,10 @@ ComunicWeb.common.page = {
|
|||||||
|
|
||||||
//We empty screen if we couldn't rich it
|
//We empty screen if we couldn't rich it
|
||||||
if(!pageTarget){
|
if(!pageTarget){
|
||||||
mainContenerElem.innerHTML = "";
|
mainContainerElem.innerHTML = "";
|
||||||
|
|
||||||
//We create the pagetTarget element
|
//We create the pagetTarget element
|
||||||
var pageTarget = createElem("div", mainContenerElem);
|
var pageTarget = createElem("div", mainContainerElem);
|
||||||
pageTarget.id = "pageTarget";
|
pageTarget.id = "pageTarget";
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
@ -290,7 +290,7 @@ ComunicWeb.common.page = {
|
|||||||
/**
|
/**
|
||||||
* Prepare a template load by specifiying datas
|
* Prepare a template load by specifiying datas
|
||||||
*
|
*
|
||||||
* @return {Object} The object contener with all required infos
|
* @return {Object} The object container with all required infos
|
||||||
*/
|
*/
|
||||||
prepareLoadTemplate: function(){
|
prepareLoadTemplate: function(){
|
||||||
//Create an object
|
//Create an object
|
||||||
@ -310,10 +310,10 @@ ComunicWeb.common.page = {
|
|||||||
* @param {Object} dataTemplate Datas to pass to the template (to parse it)
|
* @param {Object} dataTemplate Datas to pass to the template (to parse it)
|
||||||
* @param {String} templateURI URI pointing on the template
|
* @param {String} templateURI URI pointing on the template
|
||||||
* @param {function} afterParsingHTMLtemplate What to do once the template is loaded
|
* @param {function} afterParsingHTMLtemplate What to do once the template is loaded
|
||||||
* @param {Boolean} cleanContener Specify if contener has to be cleaned or not
|
* @param {Boolean} cleanContainer Specify if container has to be cleaned or not
|
||||||
* @return {Boolean} False if it fails
|
* @return {Boolean} False if it fails
|
||||||
*/
|
*/
|
||||||
getAndShowTemplate: function(targetElem, dataTemplate, templateURI, afterParsingHTMLtemplate, cleanContener){
|
getAndShowTemplate: function(targetElem, dataTemplate, templateURI, afterParsingHTMLtemplate, cleanContainer){
|
||||||
|
|
||||||
//First, get the template URL
|
//First, get the template URL
|
||||||
templateURL = ComunicWeb.__config.templatesURL + templateURI;
|
templateURL = ComunicWeb.__config.templatesURL + templateURI;
|
||||||
@ -321,8 +321,8 @@ ComunicWeb.common.page = {
|
|||||||
//Define how to apply the template
|
//Define how to apply the template
|
||||||
var afterDownloadTemplateContent = function(templateContent){
|
var afterDownloadTemplateContent = function(templateContent){
|
||||||
|
|
||||||
//If required, clean the contener
|
//If required, clean the container
|
||||||
if(cleanContener){
|
if(cleanContainer){
|
||||||
targetElem.innerHTML = "";
|
targetElem.innerHTML = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -442,10 +442,10 @@ ComunicWeb.common.page = {
|
|||||||
* @param {String} templateURI URI pointing on the template
|
* @param {String} templateURI URI pointing on the template
|
||||||
* @param {Object} additionalData Additionnal to pass to the template
|
* @param {Object} additionalData Additionnal to pass to the template
|
||||||
* @param {function} afterParsingJSONtemplate What to do once JSON template is loaded
|
* @param {function} afterParsingJSONtemplate What to do once JSON template is loaded
|
||||||
* @param {Boolean} cleanContener Specify wether the template contener has to be cleaned or not
|
* @param {Boolean} cleanContainer Specify wether the template container has to be cleaned or not
|
||||||
* @return {Boolean} Flase if it fails
|
* @return {Boolean} Flase if it fails
|
||||||
*/
|
*/
|
||||||
getAndShowJSONtemplate: function(targetElem, templateURI, additionalData, afterParsingJSONtemplate, cleanContener){
|
getAndShowJSONtemplate: function(targetElem, templateURI, additionalData, afterParsingJSONtemplate, cleanContainer){
|
||||||
//Define template URL
|
//Define template URL
|
||||||
var templateURL = ComunicWeb.__config.templatesURL + templateURI;
|
var templateURL = ComunicWeb.__config.templatesURL + templateURI;
|
||||||
|
|
||||||
|
@ -289,7 +289,7 @@ function createFormGroup(infos){
|
|||||||
*/
|
*/
|
||||||
function create_radio(target, name, label){
|
function create_radio(target, name, label){
|
||||||
|
|
||||||
//Contener
|
//Container
|
||||||
var radioDiv = createElem2({
|
var radioDiv = createElem2({
|
||||||
appendTo: target,
|
appendTo: target,
|
||||||
type: "div",
|
type: "div",
|
||||||
|
@ -16,7 +16,7 @@ ComunicWeb.components.comments.form = {
|
|||||||
//Check if we are creating a new comment of or reseting an existing one
|
//Check if we are creating a new comment of or reseting an existing one
|
||||||
if(target.className != "comment-creation-form"){
|
if(target.className != "comment-creation-form"){
|
||||||
|
|
||||||
//Create form contener
|
//Create form container
|
||||||
var commentForm = createElem2({
|
var commentForm = createElem2({
|
||||||
appendTo: target,
|
appendTo: target,
|
||||||
type: "form",
|
type: "form",
|
||||||
|
@ -43,8 +43,8 @@ ComunicWeb.components.comments.ui = {
|
|||||||
*/
|
*/
|
||||||
_process_comments: function(infos, usersInfos, postID, target){
|
_process_comments: function(infos, usersInfos, postID, target){
|
||||||
|
|
||||||
//Create comments contener
|
//Create comments container
|
||||||
var contener = createElem2({
|
var container = createElem2({
|
||||||
appendTo: target,
|
appendTo: target,
|
||||||
type: "div",
|
type: "div",
|
||||||
class: "box-comments post-comments"
|
class: "box-comments post-comments"
|
||||||
@ -52,12 +52,12 @@ ComunicWeb.components.comments.ui = {
|
|||||||
|
|
||||||
//Process the list of comments
|
//Process the list of comments
|
||||||
for(i in infos){
|
for(i in infos){
|
||||||
this._show_comment(infos[i], usersInfos['user-' + infos[i].userID], contener);
|
this._show_comment(infos[i], usersInfos['user-' + infos[i].userID], container);
|
||||||
}
|
}
|
||||||
|
|
||||||
//Add comment creation form (if possible)
|
//Add comment creation form (if possible)
|
||||||
if(signed_in()){
|
if(signed_in()){
|
||||||
ComunicWeb.components.comments.form.display(postID, contener)
|
ComunicWeb.components.comments.form.display(postID, container)
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
@ -95,10 +95,10 @@ ComunicWeb.components.comments.ui = {
|
|||||||
*/
|
*/
|
||||||
_show_comment: function(infos, user, target){
|
_show_comment: function(infos, user, target){
|
||||||
|
|
||||||
//Create comment contener (if required)
|
//Create comment container (if required)
|
||||||
if(target.className != "box-comment"){
|
if(target.className != "box-comment"){
|
||||||
|
|
||||||
var commentContener = createElem2({
|
var commentContainer = createElem2({
|
||||||
appendTo: target,
|
appendTo: target,
|
||||||
type: "div",
|
type: "div",
|
||||||
class: "box-comment"
|
class: "box-comment"
|
||||||
@ -106,16 +106,16 @@ ComunicWeb.components.comments.ui = {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//Empty comment contener
|
//Empty comment container
|
||||||
else {
|
else {
|
||||||
emptyElem(target);
|
emptyElem(target);
|
||||||
var commentContener = target;
|
var commentContainer = target;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//Add user image
|
//Add user image
|
||||||
createElem2({
|
createElem2({
|
||||||
appendTo: commentContener,
|
appendTo: commentContainer,
|
||||||
type: "img",
|
type: "img",
|
||||||
class: "img-circle imgs-sm",
|
class: "img-circle imgs-sm",
|
||||||
src: user.accountImage
|
src: user.accountImage
|
||||||
@ -123,13 +123,13 @@ ComunicWeb.components.comments.ui = {
|
|||||||
|
|
||||||
//Create comment text
|
//Create comment text
|
||||||
var commentText = createElem2({
|
var commentText = createElem2({
|
||||||
appendTo: commentContener,
|
appendTo: commentContainer,
|
||||||
type: "div",
|
type: "div",
|
||||||
class: "comment-text"
|
class: "comment-text"
|
||||||
});
|
});
|
||||||
|
|
||||||
//Add username
|
//Add username
|
||||||
var userNameContener = createElem2({
|
var userNameContainer = createElem2({
|
||||||
appendTo: commentText,
|
appendTo: commentText,
|
||||||
type: "span",
|
type: "span",
|
||||||
class: "username",
|
class: "username",
|
||||||
@ -137,15 +137,15 @@ ComunicWeb.components.comments.ui = {
|
|||||||
});
|
});
|
||||||
|
|
||||||
//Add right elements
|
//Add right elements
|
||||||
var rightContener = createElem2({
|
var rightContainer = createElem2({
|
||||||
appendTo: userNameContener,
|
appendTo: userNameContainer,
|
||||||
type: "span",
|
type: "span",
|
||||||
class: "text-muted pull-right"
|
class: "text-muted pull-right"
|
||||||
});
|
});
|
||||||
|
|
||||||
//Add comment creation date
|
//Add comment creation date
|
||||||
createElem2({
|
createElem2({
|
||||||
appendTo: rightContener,
|
appendTo: rightContainer,
|
||||||
type: "span",
|
type: "span",
|
||||||
innerHTML: ComunicWeb.common.date.timeDiffToStr(infos.time_sent) + " ago"
|
innerHTML: ComunicWeb.common.date.timeDiffToStr(infos.time_sent) + " ago"
|
||||||
});
|
});
|
||||||
@ -155,7 +155,7 @@ ComunicWeb.components.comments.ui = {
|
|||||||
|
|
||||||
//Create a button to update the comment
|
//Create a button to update the comment
|
||||||
var editCommentLink = createElem2({
|
var editCommentLink = createElem2({
|
||||||
appendTo: rightContener,
|
appendTo: rightContainer,
|
||||||
type: "a",
|
type: "a",
|
||||||
class: "edit-comment-link"
|
class: "edit-comment-link"
|
||||||
});
|
});
|
||||||
@ -170,14 +170,14 @@ ComunicWeb.components.comments.ui = {
|
|||||||
editCommentLink.onclick = function(){
|
editCommentLink.onclick = function(){
|
||||||
|
|
||||||
//Open comment editor
|
//Open comment editor
|
||||||
ComunicWeb.components.comments.editor.open(infos, commentContener);
|
ComunicWeb.components.comments.editor.open(infos, commentContainer);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//Create a button to delete the comment
|
//Create a button to delete the comment
|
||||||
var deleteCommentLink = createElem2({
|
var deleteCommentLink = createElem2({
|
||||||
appendTo: rightContener,
|
appendTo: rightContainer,
|
||||||
type: "a",
|
type: "a",
|
||||||
class: "delete-comment-link"
|
class: "delete-comment-link"
|
||||||
});
|
});
|
||||||
@ -198,12 +198,12 @@ ComunicWeb.components.comments.ui = {
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
//Hide the comment
|
//Hide the comment
|
||||||
commentContener.style.visibility = "hidden";
|
commentContainer.style.visibility = "hidden";
|
||||||
|
|
||||||
//Delete the comment
|
//Delete the comment
|
||||||
ComunicWeb.components.comments.interface.delete(infos.ID, function(response){
|
ComunicWeb.components.comments.interface.delete(infos.ID, function(response){
|
||||||
|
|
||||||
commentContener.style.visibility = "visible";
|
commentContainer.style.visibility = "visible";
|
||||||
|
|
||||||
//Check for errors
|
//Check for errors
|
||||||
if(response.error){
|
if(response.error){
|
||||||
@ -212,8 +212,8 @@ ComunicWeb.components.comments.ui = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Delete the comment node
|
//Delete the comment node
|
||||||
emptyElem(commentContener);
|
emptyElem(commentContainer);
|
||||||
commentContener.remove();
|
commentContainer.remove();
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
@ -237,14 +237,14 @@ ComunicWeb.components.comments.ui = {
|
|||||||
//Add comment image (if any)
|
//Add comment image (if any)
|
||||||
if(infos.img_url != null){
|
if(infos.img_url != null){
|
||||||
|
|
||||||
var commentImageContener = createElem2({
|
var commentImageContainer = createElem2({
|
||||||
appendTo: commentText,
|
appendTo: commentText,
|
||||||
type: "div",
|
type: "div",
|
||||||
class: "comment-img-contener"
|
class: "comment-img-container"
|
||||||
});
|
});
|
||||||
|
|
||||||
var commentImageLink = createElem2({
|
var commentImageLink = createElem2({
|
||||||
appendTo: commentImageContener,
|
appendTo: commentImageContainer,
|
||||||
type: "a",
|
type: "a",
|
||||||
href: infos.img_url
|
href: infos.img_url
|
||||||
});
|
});
|
||||||
|
@ -24,7 +24,7 @@ ComunicWeb.components.conversations.chatWindows = {
|
|||||||
|
|
||||||
//Create a conversation window
|
//Create a conversation window
|
||||||
var conversationWindow = this.create({
|
var conversationWindow = this.create({
|
||||||
target: byId(ComunicWeb.components.conversations.manager.__conversationsContenerID),
|
target: byId(ComunicWeb.components.conversations.manager.__conversationsContainerID),
|
||||||
conversationID: conversationID,
|
conversationID: conversationID,
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -75,7 +75,7 @@ ComunicWeb.components.conversations.chatWindows = {
|
|||||||
|
|
||||||
|
|
||||||
//Debug
|
//Debug
|
||||||
//Create messages contener
|
//Create messages container
|
||||||
infosBox.messagesArea = createElem2({
|
infosBox.messagesArea = createElem2({
|
||||||
appendTo: infosBox.boxBody,
|
appendTo: infosBox.boxBody,
|
||||||
type: "div",
|
type: "div",
|
||||||
@ -120,8 +120,8 @@ ComunicWeb.components.conversations.chatWindows = {
|
|||||||
*/
|
*/
|
||||||
addMessageform: function(infosBox){
|
addMessageform: function(infosBox){
|
||||||
|
|
||||||
//Create form contener
|
//Create form container
|
||||||
var conversationFormContener = createElem2({
|
var conversationFormContainer = createElem2({
|
||||||
appendTo: infosBox.boxFooter,
|
appendTo: infosBox.boxFooter,
|
||||||
type: "form",
|
type: "form",
|
||||||
class: "create-message-form"
|
class: "create-message-form"
|
||||||
@ -129,7 +129,7 @@ ComunicWeb.components.conversations.chatWindows = {
|
|||||||
|
|
||||||
//Create input group
|
//Create input group
|
||||||
var inputGroup = createElem2({
|
var inputGroup = createElem2({
|
||||||
appendTo: conversationFormContener,
|
appendTo: conversationFormContainer,
|
||||||
type: "div",
|
type: "div",
|
||||||
class: "input-group"
|
class: "input-group"
|
||||||
});
|
});
|
||||||
@ -209,7 +209,7 @@ ComunicWeb.components.conversations.chatWindows = {
|
|||||||
|
|
||||||
//Add required elements to infosBox
|
//Add required elements to infosBox
|
||||||
infosBox.sendMessageForm = {
|
infosBox.sendMessageForm = {
|
||||||
formRoot: conversationFormContener,
|
formRoot: conversationFormContainer,
|
||||||
sendButton: sendButton,
|
sendButton: sendButton,
|
||||||
inputText: inputText,
|
inputText: inputText,
|
||||||
textarea2: textarea2,
|
textarea2: textarea2,
|
||||||
|
@ -7,9 +7,9 @@
|
|||||||
ComunicWeb.components.conversations.manager = {
|
ComunicWeb.components.conversations.manager = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var {String} The ID of the conversation contener
|
* @var {String} The ID of the conversation container
|
||||||
*/
|
*/
|
||||||
__conversationsContenerID: "conversationsElem",
|
__conversationsContainerID: "conversationsElem",
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Display conversations manager
|
* Display conversations manager
|
||||||
@ -19,7 +19,7 @@ ComunicWeb.components.conversations.manager = {
|
|||||||
display: function(){
|
display: function(){
|
||||||
|
|
||||||
//Try to get conversation manager
|
//Try to get conversation manager
|
||||||
var conversationsContainerElem = byId(this.__conversationsContenerID);
|
var conversationsContainerElem = byId(this.__conversationsContainerID);
|
||||||
|
|
||||||
//Check if element exists or not
|
//Check if element exists or not
|
||||||
if(conversationsContainerElem){
|
if(conversationsContainerElem){
|
||||||
@ -33,7 +33,7 @@ ComunicWeb.components.conversations.manager = {
|
|||||||
|
|
||||||
//Create conversations manager element
|
//Create conversations manager element
|
||||||
var conversationsContainerElem = createElem("div");
|
var conversationsContainerElem = createElem("div");
|
||||||
conversationsContainerElem.id = this.__conversationsContenerID;
|
conversationsContainerElem.id = this.__conversationsContainerID;
|
||||||
|
|
||||||
//Insert the element at the right place
|
//Insert the element at the right place
|
||||||
var pageTarget = byId("pageTarget");
|
var pageTarget = byId("pageTarget");
|
||||||
|
@ -55,12 +55,12 @@ ComunicWeb.components.conversations.unreadDropdown = {
|
|||||||
});
|
});
|
||||||
|
|
||||||
//Add conversations list
|
//Add conversations list
|
||||||
var conversationsListContener = createElem2({
|
var conversationsListContainer = createElem2({
|
||||||
appendTo: dropdownMenu,
|
appendTo: dropdownMenu,
|
||||||
type: "li"
|
type: "li"
|
||||||
});
|
});
|
||||||
var conversationsList = createElem2({
|
var conversationsList = createElem2({
|
||||||
appendTo: conversationsListContener,
|
appendTo: conversationsListContainer,
|
||||||
type: "ul",
|
type: "ul",
|
||||||
class: "menu"
|
class: "menu"
|
||||||
});
|
});
|
||||||
|
@ -162,7 +162,7 @@ ComunicWeb.components.friends.listModal = {
|
|||||||
*/
|
*/
|
||||||
_show_read_only: function(target, ids, user){
|
_show_read_only: function(target, ids, user){
|
||||||
|
|
||||||
//Create the friends list contener
|
//Create the friends list container
|
||||||
var list = createElem2({
|
var list = createElem2({
|
||||||
appendTo: target,
|
appendTo: target,
|
||||||
type: "div",
|
type: "div",
|
||||||
@ -182,7 +182,7 @@ ComunicWeb.components.friends.listModal = {
|
|||||||
ids.forEach(id => {
|
ids.forEach(id => {
|
||||||
|
|
||||||
//Display the user
|
//Display the user
|
||||||
const userContener = createElem2({
|
const userContainer = createElem2({
|
||||||
appendTo: list,
|
appendTo: list,
|
||||||
type: "div",
|
type: "div",
|
||||||
class: "friend"
|
class: "friend"
|
||||||
@ -190,7 +190,7 @@ ComunicWeb.components.friends.listModal = {
|
|||||||
|
|
||||||
//Create user link
|
//Create user link
|
||||||
const userLink = createElem2({
|
const userLink = createElem2({
|
||||||
appendTo: userContener,
|
appendTo: userContainer,
|
||||||
type: "a"
|
type: "a"
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -15,13 +15,13 @@ ComunicWeb.components.friends.ui = {
|
|||||||
*/
|
*/
|
||||||
show_personnal_friend: function(target, friend, user){
|
show_personnal_friend: function(target, friend, user){
|
||||||
|
|
||||||
//Create friend contener, if required
|
//Create friend container, if required
|
||||||
if(target.className == "friend"){
|
if(target.className == "friend"){
|
||||||
var friendContener = target;
|
var friendContainer = target;
|
||||||
emptyElem(friendContener);
|
emptyElem(friendContainer);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
var friendContener = createElem2({
|
var friendContainer = createElem2({
|
||||||
appendTo: target,
|
appendTo: target,
|
||||||
type: "div",
|
type: "div",
|
||||||
class: "friend"
|
class: "friend"
|
||||||
@ -32,7 +32,7 @@ ComunicWeb.components.friends.ui = {
|
|||||||
|
|
||||||
//Create user link
|
//Create user link
|
||||||
const userLink = createElem2({
|
const userLink = createElem2({
|
||||||
appendTo: friendContener,
|
appendTo: friendContainer,
|
||||||
type: "a"
|
type: "a"
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -64,7 +64,7 @@ ComunicWeb.components.friends.ui = {
|
|||||||
|
|
||||||
//Create actions area
|
//Create actions area
|
||||||
var actionsOnFriendArea = createElem2({
|
var actionsOnFriendArea = createElem2({
|
||||||
appendTo: friendContener,
|
appendTo: friendContainer,
|
||||||
type: "div",
|
type: "div",
|
||||||
class: "friends-actions"
|
class: "friends-actions"
|
||||||
});
|
});
|
||||||
@ -112,12 +112,12 @@ ComunicWeb.components.friends.ui = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(!accept){
|
if(!accept){
|
||||||
friendContener.remove();
|
friendContainer.remove();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
||||||
//Update friendship informations
|
//Update friendship informations
|
||||||
ComunicWeb.components.friends.actions.refresh_single_personnal(friendID, friendContener);
|
ComunicWeb.components.friends.actions.refresh_single_personnal(friendID, friendContainer);
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
@ -165,7 +165,7 @@ ComunicWeb.components.friends.ui = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Update friendship informations
|
//Update friendship informations
|
||||||
ComunicWeb.components.friends.actions.refresh_single_personnal(friendID, friendContener);
|
ComunicWeb.components.friends.actions.refresh_single_personnal(friendID, friendContainer);
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -199,7 +199,7 @@ ComunicWeb.components.friends.ui = {
|
|||||||
ComunicWeb.common.notificationSystem.showNotification("Could not update posts creation status !", "danger");
|
ComunicWeb.common.notificationSystem.showNotification("Could not update posts creation status !", "danger");
|
||||||
|
|
||||||
//Update friendship informations
|
//Update friendship informations
|
||||||
ComunicWeb.components.friends.actions.refresh_single_personnal(friendID, friendContener);
|
ComunicWeb.components.friends.actions.refresh_single_personnal(friendID, friendContainer);
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -209,7 +209,7 @@ ComunicWeb.components.friends.ui = {
|
|||||||
|
|
||||||
//Offer to delete friendship
|
//Offer to delete friendship
|
||||||
const deleteLink = createElem2({
|
const deleteLink = createElem2({
|
||||||
appendTo: friendContener,
|
appendTo: friendContainer,
|
||||||
type: "a",
|
type: "a",
|
||||||
innerHTML: "<i class='fa fa-trash'></i>"
|
innerHTML: "<i class='fa fa-trash'></i>"
|
||||||
});
|
});
|
||||||
@ -225,11 +225,11 @@ ComunicWeb.components.friends.ui = {
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
//Try to delete the friend from the list
|
//Try to delete the friend from the list
|
||||||
friendContener.style.visibility = "hidden";
|
friendContainer.style.visibility = "hidden";
|
||||||
ComunicWeb.components.friends.interface.remove_friend(friendID, function(result){
|
ComunicWeb.components.friends.interface.remove_friend(friendID, function(result){
|
||||||
|
|
||||||
//Make friend contener visible
|
//Make friend container visible
|
||||||
friendContener.style.visibility = "visible";
|
friendContainer.style.visibility = "visible";
|
||||||
|
|
||||||
//Check for errors
|
//Check for errors
|
||||||
if(result.error){
|
if(result.error){
|
||||||
@ -238,7 +238,7 @@ ComunicWeb.components.friends.ui = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Delete the element
|
//Delete the element
|
||||||
friendContener.remove();
|
friendContainer.remove();
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -72,12 +72,12 @@ ComunicWeb.components.notifications.dropdown = {
|
|||||||
});
|
});
|
||||||
|
|
||||||
//Add notifications list
|
//Add notifications list
|
||||||
var notificationsListContener = createElem2({
|
var notificationsListContainer = createElem2({
|
||||||
appendTo: dropdownMenu,
|
appendTo: dropdownMenu,
|
||||||
type: "li"
|
type: "li"
|
||||||
});
|
});
|
||||||
var notificationsList = createElem2({
|
var notificationsList = createElem2({
|
||||||
appendTo: notificationsListContener,
|
appendTo: notificationsListContainer,
|
||||||
type: "ul",
|
type: "ul",
|
||||||
class: "menu"
|
class: "menu"
|
||||||
});
|
});
|
||||||
|
@ -88,15 +88,15 @@ ComunicWeb.components.notifications.ui = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
//Create the notification object
|
//Create the notification object
|
||||||
var notificationContener = createElem2({
|
var notificationContainer = createElem2({
|
||||||
appendTo: target,
|
appendTo: target,
|
||||||
type: "li",
|
type: "li",
|
||||||
class: "notification-contener"
|
class: "notification-container"
|
||||||
});
|
});
|
||||||
|
|
||||||
//Create notification link
|
//Create notification link
|
||||||
var notificationLink = createElem2({
|
var notificationLink = createElem2({
|
||||||
appendTo: notificationContener,
|
appendTo: notificationContainer,
|
||||||
type: "a"
|
type: "a"
|
||||||
});
|
});
|
||||||
notificationLink.onclick = action;
|
notificationLink.onclick = action;
|
||||||
|
@ -96,7 +96,7 @@ ComunicWeb.components.posts.edit = {
|
|||||||
var updateDiv = createElem2({
|
var updateDiv = createElem2({
|
||||||
appendTo: modalBody,
|
appendTo: modalBody,
|
||||||
type: "div",
|
type: "div",
|
||||||
class: "editor-contener"
|
class: "editor-container"
|
||||||
});
|
});
|
||||||
|
|
||||||
//Create update editor
|
//Create update editor
|
||||||
|
@ -44,36 +44,36 @@ ComunicWeb.components.posts.form = {
|
|||||||
$(inputMessageDiv).wysiwyg();
|
$(inputMessageDiv).wysiwyg();
|
||||||
|
|
||||||
//Add the different post types
|
//Add the different post types
|
||||||
var postTypesContener = createElem2({
|
var postTypesContainer = createElem2({
|
||||||
appendTo: boxBody,
|
appendTo: boxBody,
|
||||||
type: "div",
|
type: "div",
|
||||||
class: "post-types"
|
class: "post-types"
|
||||||
});
|
});
|
||||||
|
|
||||||
//Text
|
//Text
|
||||||
var textType = this._add_post_type(postTypesContener, "text", lang("_post_type_text"));
|
var textType = this._add_post_type(postTypesContainer, "text", lang("_post_type_text"));
|
||||||
textType.checked = true;
|
textType.checked = true;
|
||||||
|
|
||||||
//Image
|
//Image
|
||||||
var imageType = this._add_post_type(postTypesContener, "image", "<i class='fa fa-picture-o'></i> <span class='hidden-xs'>"+lang("_post_type_image")+"</span>");
|
var imageType = this._add_post_type(postTypesContainer, "image", "<i class='fa fa-picture-o'></i> <span class='hidden-xs'>"+lang("_post_type_image")+"</span>");
|
||||||
|
|
||||||
//Youtube
|
//Youtube
|
||||||
var youtubeType = this._add_post_type(postTypesContener, "youtube", "<i class='fa fa-youtube-play'></i> <span class='hidden-xs'>"+lang("_post_type_youtube")+"</span>");
|
var youtubeType = this._add_post_type(postTypesContainer, "youtube", "<i class='fa fa-youtube-play'></i> <span class='hidden-xs'>"+lang("_post_type_youtube")+"</span>");
|
||||||
|
|
||||||
//Movie
|
//Movie
|
||||||
var movieType = this._add_post_type(postTypesContener, "movie", "<i class='fa fa-file-movie-o'></i> <span class='hidden-xs'>"+lang("_post_type_movie")+"</span>");
|
var movieType = this._add_post_type(postTypesContainer, "movie", "<i class='fa fa-file-movie-o'></i> <span class='hidden-xs'>"+lang("_post_type_movie")+"</span>");
|
||||||
|
|
||||||
//Link
|
//Link
|
||||||
var linkType = this._add_post_type(postTypesContener, "link", "<i class='fa fa-link'></i> <span class='hidden-xs'>"+lang("_post_type_link")+"</span>");
|
var linkType = this._add_post_type(postTypesContainer, "link", "<i class='fa fa-link'></i> <span class='hidden-xs'>"+lang("_post_type_link")+"</span>");
|
||||||
|
|
||||||
//PDF
|
//PDF
|
||||||
var pdfType = this._add_post_type(postTypesContener, "pdf", "<i class='fa fa-file-pdf-o'></i> <span class='hidden-xs'>"+lang("_post_type_pdf")+"</span>");
|
var pdfType = this._add_post_type(postTypesContainer, "pdf", "<i class='fa fa-file-pdf-o'></i> <span class='hidden-xs'>"+lang("_post_type_pdf")+"</span>");
|
||||||
|
|
||||||
//Countdown timer
|
//Countdown timer
|
||||||
var countdownType = this._add_post_type(postTypesContener, "countdown", "<i class='fa fa-clock-o'></i> <span class='hidden-xs'>"+lang("_post_type_countdown")+"</span>");
|
var countdownType = this._add_post_type(postTypesContainer, "countdown", "<i class='fa fa-clock-o'></i> <span class='hidden-xs'>"+lang("_post_type_countdown")+"</span>");
|
||||||
|
|
||||||
//Survey
|
//Survey
|
||||||
var surveyType = this._add_post_type(postTypesContener, "survey", "<i class='fa fa-pie-chart'></i> <span class='hidden-xs'>"+lang("_post_type_survey")+"</span>");
|
var surveyType = this._add_post_type(postTypesContainer, "survey", "<i class='fa fa-pie-chart'></i> <span class='hidden-xs'>"+lang("_post_type_survey")+"</span>");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -255,7 +255,7 @@ ComunicWeb.components.posts.form = {
|
|||||||
countdownType.onclick = changesHandler;
|
countdownType.onclick = changesHandler;
|
||||||
surveyType.onclick = changesHandler;
|
surveyType.onclick = changesHandler;
|
||||||
|
|
||||||
//Right contener
|
//Right container
|
||||||
var rightDiv = createElem2({
|
var rightDiv = createElem2({
|
||||||
appendTo: boxBody,
|
appendTo: boxBody,
|
||||||
type: "div",
|
type: "div",
|
||||||
@ -263,24 +263,24 @@ ComunicWeb.components.posts.form = {
|
|||||||
})
|
})
|
||||||
|
|
||||||
//Add visibility level choice
|
//Add visibility level choice
|
||||||
var visibility_choices_contener = createElem2({
|
var visibility_choices_container = createElem2({
|
||||||
appendTo: rightDiv,
|
appendTo: rightDiv,
|
||||||
type: "div",
|
type: "div",
|
||||||
class: "post-visiblity-contener"
|
class: "post-visiblity-container"
|
||||||
});
|
});
|
||||||
|
|
||||||
//Private post
|
//Private post
|
||||||
var privateLevel = ComunicWeb.components.posts.visibilityLevels.private;
|
var privateLevel = ComunicWeb.components.posts.visibilityLevels.private;
|
||||||
var privateInput = this._add_visiblity_choice(visibility_choices_contener, "private", privateLevel.name, privateLevel.icon);
|
var privateInput = this._add_visiblity_choice(visibility_choices_container, "private", privateLevel.name, privateLevel.icon);
|
||||||
|
|
||||||
//Friends-visible post
|
//Friends-visible post
|
||||||
var friendsLevel = ComunicWeb.components.posts.visibilityLevels.friends;
|
var friendsLevel = ComunicWeb.components.posts.visibilityLevels.friends;
|
||||||
var friendsInput = this._add_visiblity_choice(visibility_choices_contener, "friends", friendsLevel.name, friendsLevel.icon);
|
var friendsInput = this._add_visiblity_choice(visibility_choices_container, "friends", friendsLevel.name, friendsLevel.icon);
|
||||||
friendsInput.checked = true;
|
friendsInput.checked = true;
|
||||||
|
|
||||||
//Worldwide post
|
//Worldwide post
|
||||||
var publicLevel = ComunicWeb.components.posts.visibilityLevels.public;
|
var publicLevel = ComunicWeb.components.posts.visibilityLevels.public;
|
||||||
this._add_visiblity_choice(visibility_choices_contener, "public", publicLevel.name, publicLevel.icon);
|
this._add_visiblity_choice(visibility_choices_container, "public", publicLevel.name, publicLevel.icon);
|
||||||
|
|
||||||
//Add send button
|
//Add send button
|
||||||
var sendButton = createElem2({
|
var sendButton = createElem2({
|
||||||
@ -459,7 +459,7 @@ ComunicWeb.components.posts.form = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Get the visibility level
|
//Get the visibility level
|
||||||
var visibilityLevel = visibility_choices_contener.querySelector("input:checked").value;
|
var visibilityLevel = visibility_choices_container.querySelector("input:checked").value;
|
||||||
datas.append("visibility", visibilityLevel);
|
datas.append("visibility", visibilityLevel);
|
||||||
|
|
||||||
//Lock the send button
|
//Lock the send button
|
||||||
@ -495,14 +495,14 @@ ComunicWeb.components.posts.form = {
|
|||||||
*/
|
*/
|
||||||
_add_post_type: function(target, value, label){
|
_add_post_type: function(target, value, label){
|
||||||
|
|
||||||
var postTypeContener = createElem2({
|
var postTypeContainer = createElem2({
|
||||||
appendTo: target,
|
appendTo: target,
|
||||||
type: "label",
|
type: "label",
|
||||||
class: "post-form-choice"
|
class: "post-form-choice"
|
||||||
});
|
});
|
||||||
|
|
||||||
var input = createElem2({
|
var input = createElem2({
|
||||||
appendTo: postTypeContener,
|
appendTo: postTypeContainer,
|
||||||
type: "input",
|
type: "input",
|
||||||
elemType: "radio",
|
elemType: "radio",
|
||||||
name: "post_type",
|
name: "post_type",
|
||||||
@ -510,7 +510,7 @@ ComunicWeb.components.posts.form = {
|
|||||||
});
|
});
|
||||||
|
|
||||||
createElem2({
|
createElem2({
|
||||||
appendTo: postTypeContener,
|
appendTo: postTypeContainer,
|
||||||
type: "span",
|
type: "span",
|
||||||
innerHTML: label
|
innerHTML: label
|
||||||
});
|
});
|
||||||
@ -530,14 +530,14 @@ ComunicWeb.components.posts.form = {
|
|||||||
_add_visiblity_choice: function(target, value, title, icon){
|
_add_visiblity_choice: function(target, value, title, icon){
|
||||||
|
|
||||||
//Visibility label
|
//Visibility label
|
||||||
var visibility_contener = createElem2({
|
var visibility_container = createElem2({
|
||||||
appendTo: target,
|
appendTo: target,
|
||||||
type: "label",
|
type: "label",
|
||||||
});
|
});
|
||||||
|
|
||||||
//Create input
|
//Create input
|
||||||
var visibilityInput = createElem2({
|
var visibilityInput = createElem2({
|
||||||
appendTo: visibility_contener,
|
appendTo: visibility_container,
|
||||||
type: "input",
|
type: "input",
|
||||||
elemType: "radio",
|
elemType: "radio",
|
||||||
name: "post_visibility",
|
name: "post_visibility",
|
||||||
@ -546,7 +546,7 @@ ComunicWeb.components.posts.form = {
|
|||||||
|
|
||||||
//Create icon
|
//Create icon
|
||||||
var visibility_label = createElem2({
|
var visibility_label = createElem2({
|
||||||
appendTo: visibility_contener,
|
appendTo: visibility_container,
|
||||||
type: "span",
|
type: "span",
|
||||||
innerHTML: "<i class='fa " + icon + "'></i>"
|
innerHTML: "<i class='fa " + icon + "'></i>"
|
||||||
});
|
});
|
||||||
|
@ -285,7 +285,7 @@ ComunicWeb.components.posts.ui = {
|
|||||||
//In case of video
|
//In case of video
|
||||||
else if(infos.kind == "movie"){
|
else if(infos.kind == "movie"){
|
||||||
|
|
||||||
var videoContener = createElem2({
|
var videoContainer = createElem2({
|
||||||
appendTo: postRoot,
|
appendTo: postRoot,
|
||||||
type: "div",
|
type: "div",
|
||||||
class: "post-video"
|
class: "post-video"
|
||||||
@ -293,7 +293,7 @@ ComunicWeb.components.posts.ui = {
|
|||||||
|
|
||||||
//Create video element
|
//Create video element
|
||||||
var video = createElem2({
|
var video = createElem2({
|
||||||
appendTo: videoContener,
|
appendTo: videoContainer,
|
||||||
type: "video",
|
type: "video",
|
||||||
class: "video-js vjs-default-skin"
|
class: "video-js vjs-default-skin"
|
||||||
});
|
});
|
||||||
@ -439,7 +439,7 @@ ComunicWeb.components.posts.ui = {
|
|||||||
class: "post-survey-question"
|
class: "post-survey-question"
|
||||||
});
|
});
|
||||||
|
|
||||||
//Answer contener
|
//Answer container
|
||||||
var surveyResponse = createElem2({
|
var surveyResponse = createElem2({
|
||||||
appendTo: postRoot,
|
appendTo: postRoot,
|
||||||
type: "div",
|
type: "div",
|
||||||
@ -449,7 +449,7 @@ ComunicWeb.components.posts.ui = {
|
|||||||
var row = createElem2({
|
var row = createElem2({
|
||||||
appendTo: postRoot,
|
appendTo: postRoot,
|
||||||
type: "div",
|
type: "div",
|
||||||
class: "row post-survey-chart-contener"
|
class: "row post-survey-chart-container"
|
||||||
});
|
});
|
||||||
|
|
||||||
//Create canvas column
|
//Create canvas column
|
||||||
@ -459,8 +459,8 @@ ComunicWeb.components.posts.ui = {
|
|||||||
class: "col-md-8"
|
class: "col-md-8"
|
||||||
});
|
});
|
||||||
|
|
||||||
//Chart contener
|
//Chart container
|
||||||
var chartContener = createElem2({
|
var chartContainer = createElem2({
|
||||||
appendTo: leftColumn,
|
appendTo: leftColumn,
|
||||||
type: "div",
|
type: "div",
|
||||||
class: "chart-responsive"
|
class: "chart-responsive"
|
||||||
@ -468,7 +468,7 @@ ComunicWeb.components.posts.ui = {
|
|||||||
|
|
||||||
//Create canvas
|
//Create canvas
|
||||||
var canvas = createElem2({
|
var canvas = createElem2({
|
||||||
appendTo: chartContener,
|
appendTo: chartContainer,
|
||||||
type: "canvas",
|
type: "canvas",
|
||||||
});
|
});
|
||||||
canvas.style.height = "150px";
|
canvas.style.height = "150px";
|
||||||
|
@ -134,7 +134,7 @@ ComunicWeb.pages.userPage.main = {
|
|||||||
var row = createElem2({
|
var row = createElem2({
|
||||||
appendTo: sectionContent,
|
appendTo: sectionContent,
|
||||||
type: "div",
|
type: "div",
|
||||||
class: "row page-contener"
|
class: "row page-container"
|
||||||
});
|
});
|
||||||
|
|
||||||
//Create left column
|
//Create left column
|
||||||
|
@ -150,20 +150,20 @@ ComunicWeb.pages.userPage.posts = {
|
|||||||
*/
|
*/
|
||||||
_no_posts_msg: function(target){
|
_no_posts_msg: function(target){
|
||||||
|
|
||||||
var msgContener = createElem2({
|
var msgContainer = createElem2({
|
||||||
appendTo: target,
|
appendTo: target,
|
||||||
type: "div"
|
type: "div"
|
||||||
});
|
});
|
||||||
|
|
||||||
var msgTitle = createElem2({
|
var msgTitle = createElem2({
|
||||||
appendTo: msgContener,
|
appendTo: msgContainer,
|
||||||
type: "h2",
|
type: "h2",
|
||||||
innerHTML: "No post yet"
|
innerHTML: "No post yet"
|
||||||
});
|
});
|
||||||
msgTitle.style.textAlign = "center";
|
msgTitle.style.textAlign = "center";
|
||||||
|
|
||||||
var msgContent = createElem2({
|
var msgContent = createElem2({
|
||||||
appendTo: msgContener,
|
appendTo: msgContainer,
|
||||||
type: "p",
|
type: "p",
|
||||||
innerHTML: "Nobody has posted a message on this page yet."
|
innerHTML: "Nobody has posted a message on this page yet."
|
||||||
}).style.textAlign = "center";
|
}).style.textAlign = "center";
|
||||||
|
@ -33,8 +33,8 @@ ComunicWeb.pages.userPage.profileInfos = {
|
|||||||
*/
|
*/
|
||||||
createMainBox: function(infos, target){
|
createMainBox: function(infos, target){
|
||||||
|
|
||||||
//Create box contener
|
//Create box container
|
||||||
var boxContener = createElem2({
|
var boxContainer = createElem2({
|
||||||
appendTo: target,
|
appendTo: target,
|
||||||
type: "div",
|
type: "div",
|
||||||
class: "box box-primary"
|
class: "box box-primary"
|
||||||
@ -42,7 +42,7 @@ ComunicWeb.pages.userPage.profileInfos = {
|
|||||||
|
|
||||||
//Setup box body
|
//Setup box body
|
||||||
var boxBody = createElem2({
|
var boxBody = createElem2({
|
||||||
appendTo: boxContener,
|
appendTo: boxContainer,
|
||||||
type: "div",
|
type: "div",
|
||||||
class: "box-body box-profile"
|
class: "box-body box-profile"
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user