mirror of
https://github.com/pierre42100/ComunicWeb
synced 2025-06-19 04:15:17 +00:00
Friend bar responsive
This commit is contained in:
@ -138,4 +138,30 @@ ComunicWeb.components.friends.bar = {
|
||||
});
|
||||
});
|
||||
},
|
||||
|
||||
/**
|
||||
* Toogle show / hide friends bar
|
||||
*
|
||||
* @return {Boolean} True for a success
|
||||
*/
|
||||
toggleShowHide: function(){
|
||||
//Get friends list element
|
||||
var friendListElem = byId("friendsList");
|
||||
|
||||
//Log action
|
||||
ComunicWeb.debug.logMessage("Toggle friends list");
|
||||
|
||||
//Check current bar state
|
||||
if(friendListElem.className == ""){
|
||||
//Show the bar
|
||||
friendListElem.className = "visible-bar";
|
||||
}
|
||||
else
|
||||
//Hide the bar
|
||||
friendListElem.className = "";
|
||||
|
||||
//Success
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user