]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
fix some errors in our js
authorJohann-S <johann.servoire@gmail.com>
Fri, 16 Jun 2017 08:51:22 +0000 (10:51 +0200)
committerJohann-S <johann.servoire@gmail.com>
Fri, 16 Jun 2017 08:57:13 +0000 (10:57 +0200)
js/src/dropdown.js

index acc3ed453a71a961522113f8eb005bfd2f55198e..4ed0210a545a3fd34237ea36078600804c5b3076 100644 (file)
@@ -250,12 +250,10 @@ const Dropdown = (($) => {
         if ($(this._menu).hasClass(ClassName.MENURIGHT)) {
           placement = AttachmentMap.TOPEND
         }
+      } else if ($(this._menu).hasClass(ClassName.MENURIGHT)) {
+        placement = AttachmentMap.BOTTOMEND
       }
-      else {
-        if ($(this._menu).hasClass(ClassName.MENURIGHT)) {
-          placement = AttachmentMap.BOTTOMEND
-        }
-      }
+
       return placement
     }