From be4ed60ec2c9fa979cfdfca969e2933d81ba11e1 Mon Sep 17 00:00:00 2001 From: Benoit Mortier <benoit.mortier@opensides.be> Date: Fri, 2 Dec 2016 21:50:08 +0100 Subject: [PATCH] Fixes sonar bugs Replace "==" with "===" Use a literal instead of the Object constructor. Signed-off-by: Benoit Mortier <benoit.mortier@opensides.be> --- contrib/openldap/core-fd-conf.schema | 10 +++++++++- html/include/pulldown.js | 4 ++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/contrib/openldap/core-fd-conf.schema b/contrib/openldap/core-fd-conf.schema index dff0cbff2..82538bb2c 100644 --- a/contrib/openldap/core-fd-conf.schema +++ b/contrib/openldap/core-fd-conf.schema @@ -496,6 +496,15 @@ attributetype ( 1.3.6.1.4.1.38414.8.21.5 NAME 'fdCasContext' SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE) +#tokens RDN + +attributetype ( 1.3.6.1.4.1.38414.8.22.2 NAME 'fdRecoveryTokenRDN' + DESC 'FusionDirectory - Recovery Password Token RDN' + EQUALITY caseExactIA5Match + SUBSTR caseExactIA5SubstringsMatch + SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 + SINGLE-VALUE) + # merged from dashboard-fd.schema - Needed by Fusion Directory for dashboard options attributetype ( 1.3.6.1.4.1.38414.27.1.1 NAME 'fdDashboardPrefix' @@ -573,7 +582,6 @@ attributetype ( 1.3.6.1.4.1.38414.8.110.9 NAME 'fdPasswordRecoveryUseAlternate' SYNTAX 1.3.6.1.4.1.1466.115.121.1.7 SINGLE-VALUE ) - # Object Class objectclass ( 1.3.6.1.4.1.38414.8.2.1 NAME 'fusionDirectoryConf' DESC 'FusionDirectory configuration' diff --git a/html/include/pulldown.js b/html/include/pulldown.js index a906d9fd1..c00fb00c5 100644 --- a/html/include/pulldown.js +++ b/html/include/pulldown.js @@ -96,7 +96,7 @@ MenuContainer.prototype = { for (var i = 0; i < childNodes.length; i++) { var node = childNodes[i]; - if (node.nodeType == 1) { + if (node.nodeType === 1) { if (this.type === "menuContainer") { if (node.tagName.toLowerCase() === "li") { this.menuItems.push(new MenuItem(node, this)); @@ -138,7 +138,7 @@ MenuContainer.prototype = { top: (Position.positionedOffset(this.parent.element)[1] + Element.getHeight(this.parent.element)) + "px" }); } else if (this.menuType === "flyout") { - var parentMenuBorders = this.parentMenu ? this.parentMenu.getBorders() : new Object(); + var parentMenuBorders = this.parentMenu ? this.parentMenu.getBorders() : {}; var thisBorders = this.getBorders(); if ( (Position.positionedOffset(this.parentMenu.element)[0] + this.parentMenu.element.offsetWidth + this.element.offsetWidth + 20) > -- GitLab