mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 07:56:16 -04:00
pad_editbar: Don't pass a callback to toggleDropDown()
The function is synchronous so there's no point.
This commit is contained in:
parent
59d6a8b321
commit
a1b924f746
2 changed files with 21 additions and 26 deletions
|
@ -32,15 +32,14 @@ const padmodals = (() => {
|
|||
pad = _pad;
|
||||
},
|
||||
showModal: (messageId) => {
|
||||
padeditbar.toggleDropDown('none', () => {
|
||||
$('#connectivity .visible').removeClass('visible');
|
||||
$(`#connectivity .${messageId}`).addClass('visible');
|
||||
padeditbar.toggleDropDown('none');
|
||||
$('#connectivity .visible').removeClass('visible');
|
||||
$(`#connectivity .${messageId}`).addClass('visible');
|
||||
|
||||
const $modal = $(`#connectivity .${messageId}`);
|
||||
automaticReconnect.showCountDownTimerToReconnectOnModal($modal, pad);
|
||||
const $modal = $(`#connectivity .${messageId}`);
|
||||
automaticReconnect.showCountDownTimerToReconnectOnModal($modal, pad);
|
||||
|
||||
padeditbar.toggleDropDown('connectivity');
|
||||
});
|
||||
padeditbar.toggleDropDown('connectivity');
|
||||
},
|
||||
showOverlay: () => {
|
||||
// Prevent the user to interact with the toolbar. Useful when user is disconnected for example
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue