Get account image settings from the server

This commit is contained in:
Pierre
2018-04-29 15:13:51 +02:00
parent 159108b08b
commit 8367a76906
9 changed files with 134 additions and 1 deletions

View File

@ -99,6 +99,11 @@ var ComunicWeb = {
*/
createCalloutElem: function(calloutTitle, calloutMessage, calloutType){},
/**
* Create and return a callout element
*/
createLoadingCallout: function(target){},
/**
* Create and display a confirmation dialog
*/
@ -1129,6 +1134,13 @@ var ComunicWeb = {
password: {
//TODO : implement
},
/**
* Account image section
*/
accountImage: {
//TODO : implement
},
},
},

View File

@ -37,6 +37,24 @@ ComunicWeb.common.messages.createCalloutElem = function(calloutTitle, calloutMes
return calloutElem;
}
/**
* Create loading callout element
*
* @param {HTMLElement} target Optionnal, the target of the callout element
* @return {HTMLElement} Generated loading callout element
*/
ComunicWeb.common.messages.createLoadingCallout = function(target){
var elem = this.createCalloutElem("Loading", "Please wait while this page is loading...", "info");
if(target)
target.appendChild(elem);
return elem;
}
/**
* Create a confirmation dialog
*