mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-31 19:02:59 +01:00
pad_editbar: Deprecate the toggleDropDown
callback
This commit is contained in:
parent
c629ee09a8
commit
ee41de4809
2 changed files with 4 additions and 2 deletions
|
@ -5,7 +5,7 @@ src/static/js/pad_editbar.js
|
||||||
|
|
||||||
## disable()
|
## disable()
|
||||||
|
|
||||||
## toggleDropDown(dropdown, callback)
|
## toggleDropDown(dropdown)
|
||||||
Shows the dropdown `div.popup` whose `id` equals `dropdown`.
|
Shows the dropdown `div.popup` whose `id` equals `dropdown`.
|
||||||
|
|
||||||
## registerCommand(cmd, callback)
|
## registerCommand(cmd, callback)
|
||||||
|
|
|
@ -200,7 +200,9 @@ exports.padeditbar = {
|
||||||
}
|
}
|
||||||
if (padeditor.ace) padeditor.ace.focus();
|
if (padeditor.ace) padeditor.ace.focus();
|
||||||
},
|
},
|
||||||
toggleDropDown(moduleName, cb) {
|
|
||||||
|
// cb is deprecated (this function is synchronous so a callback is unnecessary).
|
||||||
|
toggleDropDown(moduleName, cb = null) {
|
||||||
let cbErr = null;
|
let cbErr = null;
|
||||||
try {
|
try {
|
||||||
// do nothing if users are sticked
|
// do nothing if users are sticked
|
||||||
|
|
Loading…
Reference in a new issue