From 75c9ce38ab71a51681f8d1f018c2e9df86458f7e Mon Sep 17 00:00:00 2001 From: florian <f.spreckelsen@inidscale.com> Date: Mon, 5 Jun 2023 14:39:29 +0200 Subject: [PATCH] DOC: Add docstring --- src/core/js/webcaosdb.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/core/js/webcaosdb.js b/src/core/js/webcaosdb.js index f2e5e8ec..b85a007b 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") { -- GitLab