mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-28 19:49:20 +03:00
Revamp aBootstrapDropdowns
This commit is contained in:
parent
8846c453b1
commit
31bb7267ec
4 changed files with 16 additions and 23 deletions
10
dev/External/ko.js
vendored
10
dev/External/ko.js
vendored
|
|
@ -91,13 +91,7 @@ ko.bindingHandlers.tooltipErrorTip = {
|
|||
};
|
||||
|
||||
ko.bindingHandlers.registrateBootstrapDropdown = {
|
||||
init: (element) => {
|
||||
const Globals = require('Common/Globals');
|
||||
if (Globals && Globals.data.aBootstrapDropdowns) {
|
||||
Globals.data.aBootstrapDropdowns.push($(element));
|
||||
element.addEventListener('click', () => require('Common/Utils').detectDropdownVisibility());
|
||||
}
|
||||
}
|
||||
init: element => rl.Dropdowns.registrate(element)
|
||||
};
|
||||
|
||||
ko.bindingHandlers.openDropdownTrigger = {
|
||||
|
|
@ -110,7 +104,7 @@ ko.bindingHandlers.openDropdownTrigger = {
|
|||
|
||||
t.focus();
|
||||
|
||||
require('Common/Utils').detectDropdownVisibility();
|
||||
rl.Dropdowns.detectVisibility();
|
||||
fValueAccessor()(false);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue