Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorJohann-S <johann.servoire@gmail.com>2017-06-16 11:51:22 +0300
committerJohann-S <johann.servoire@gmail.com>2017-06-16 11:57:13 +0300
commit6ed8a735d02fe7bd71a3bf5c520891d2157cec30 (patch)
tree0da003f0887c1fc61a6811279d9f48666495ef27 /js
parent11a5ca8ff3b943ba5655400971415ff29f6896a8 (diff)
fix some errors in our js
Diffstat (limited to 'js')
-rw-r--r--js/src/dropdown.js8
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
}