Fixed menubar issue with login management

This commit is contained in:
Pierre
2017-05-24 18:48:52 +02:00
parent a1ee1909dc
commit 633c4f9400
4 changed files with 62 additions and 5 deletions

View File

@ -168,6 +168,10 @@ ComunicWeb.common.page = {
//Set wrapper class
pageTarget.className = "content-wrapper";
//Ask adminLTE to fix layout
if($.AdminLTE.layout)
$.AdminLTE.layout.fix();
//Set body class
document.body.className="hold-transition skin-blue layout-top-nav";

View File

@ -25,12 +25,33 @@ function createElem(nodeType, appendTo){
* Get an HTML element specified by an ID
*
* @param {String} nodeName The ID of the element
* @return {HTMLElement} The elemnt / False for a failure
* @return {HTMLElement} The element / False for a failure
*/
function byId(nodeName){
return document.getElementById(nodeName);
}
/**
* Remove all nodes of a specified HTML element
*
* @param {HTMLElement} container The container to empty
* @return {Boolean} True for a success
*/
function emptyElem(container){
//Get children references
var children = container.childNodes;
//Process each child
for(i in children){
if(children[i].remove)
children[i].remove();
}
//Success
return true;
}
/**
* Check a given email address
*