mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 15:36:16 -04:00
pad_editbar: Always call the callback
This commit is contained in:
parent
07e05a92eb
commit
148e10821b
1 changed files with 39 additions and 33 deletions
|
@ -201,6 +201,8 @@ exports.padeditbar = {
|
|||
if (padeditor.ace) padeditor.ace.focus();
|
||||
},
|
||||
toggleDropDown(moduleName, cb) {
|
||||
let cbErr = null;
|
||||
try {
|
||||
// do nothing if users are sticked
|
||||
if (moduleName === 'users' && $('#users').hasClass('stickyUsers')) {
|
||||
return;
|
||||
|
@ -240,7 +242,11 @@ exports.padeditbar = {
|
|||
}
|
||||
}
|
||||
}
|
||||
if (cb) cb();
|
||||
} catch (err) {
|
||||
cbErr = err || new Error(err);
|
||||
} finally {
|
||||
if (cb) cb(cbErr);
|
||||
}
|
||||
},
|
||||
setSyncStatus: (status) => {
|
||||
if (status === 'syncing') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue