Friend bar responsive

This commit is contained in:
Pierre
2017-06-03 15:41:04 +02:00
parent 84d53310dd
commit 204a3e7e0d
6 changed files with 136 additions and 29 deletions

View File

@ -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;
}
}