Skip to content
Snippets Groups Projects
Commit 75c9ce38 authored by florian's avatar florian
Browse files

DOC: Add docstring

parent d94655ac
No related branches found
No related tags found
2 merge requests!114TEST: Extended unit tests for hideElementForRoles.,!112F hide element for role
......@@ -306,6 +306,14 @@ this.navbar = new function () {
}
}
/**
* Hide the given element for certain roles
*
* @param {string|object} name - The HTML element either as the result
* of a jquery or identified by a jquery selector
* @param {array} roles - list of roles for which the given element is
* hidden.
*/
this.hideElementForRoles = function (name, roles) {
var elt = name;
if (typeof (name) === "string") {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment