mirror of
https://github.com/pierre42100/ComunicWeb
synced 2025-06-19 04:15:17 +00:00
Fixed menubar issue with login management
This commit is contained in:
@ -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";
|
||||
|
||||
|
@ -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
|
||||
*
|
||||
|
Reference in New Issue
Block a user