mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-23 21:53:25 +02:00
dropdown.js: switch to a ternary
This commit is contained in:
@@ -281,10 +281,9 @@ class Dropdown {
|
|||||||
|
|
||||||
// Handle dropup
|
// Handle dropup
|
||||||
if ($parentDropdown.hasClass(CLASS_NAME_DROPUP)) {
|
if ($parentDropdown.hasClass(CLASS_NAME_DROPUP)) {
|
||||||
placement = PLACEMENT_TOP
|
placement = $(this._menu).hasClass(CLASS_NAME_MENURIGHT)
|
||||||
if ($(this._menu).hasClass(CLASS_NAME_MENURIGHT)) {
|
? PLACEMENT_TOPEND
|
||||||
placement = PLACEMENT_TOPEND
|
: PLACEMENT_TOP
|
||||||
}
|
|
||||||
} else if ($parentDropdown.hasClass(CLASS_NAME_DROPRIGHT)) {
|
} else if ($parentDropdown.hasClass(CLASS_NAME_DROPRIGHT)) {
|
||||||
placement = PLACEMENT_RIGHT
|
placement = PLACEMENT_RIGHT
|
||||||
} else if ($parentDropdown.hasClass(CLASS_NAME_DROPLEFT)) {
|
} else if ($parentDropdown.hasClass(CLASS_NAME_DROPLEFT)) {
|
||||||
|
Reference in New Issue
Block a user