diff --git a/src/core/js/webcaosdb.js b/src/core/js/webcaosdb.js index f2e5e8ec4a201d1d46961b80c031c74d4ac24101..b85a007b7b06859d00dc220abf4fb3a9abe8b20a 100644 --- a/src/core/js/webcaosdb.js +++ b/src/core/js/webcaosdb.js @@ -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") {