mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-08 16:05:05 -04:00
Don't access jQuery through parent.parent
This commit is contained in:
parent
3d05616fe7
commit
af6275bb75
1 changed files with 1 additions and 1 deletions
|
@ -318,7 +318,7 @@ exports.padeditbar = new class {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// Focus on the editbar :)
|
// Focus on the editbar :)
|
||||||
const firstEditbarElement = parent.parent.$('#editbar button').first();
|
const firstEditbarElement = $('#editbar button').first();
|
||||||
|
|
||||||
$(evt.currentTarget).trigger('blur');
|
$(evt.currentTarget).trigger('blur');
|
||||||
firstEditbarElement.trigger('focus');
|
firstEditbarElement.trigger('focus');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue