diff options
author | Johann-S <johann.servoire@gmail.com> | 2017-06-16 11:51:22 +0300 |
---|---|---|
committer | Johann-S <johann.servoire@gmail.com> | 2017-06-16 11:57:13 +0300 |
commit | 6ed8a735d02fe7bd71a3bf5c520891d2157cec30 (patch) | |
tree | 0da003f0887c1fc61a6811279d9f48666495ef27 /js | |
parent | 11a5ca8ff3b943ba5655400971415ff29f6896a8 (diff) |
fix some errors in our js
Diffstat (limited to 'js')
-rw-r--r-- | js/src/dropdown.js | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/js/src/dropdown.js b/js/src/dropdown.js index acc3ed453a..4ed0210a54 100644 --- a/js/src/dropdown.js +++ b/js/src/dropdown.js @@ -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 } |