mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-31 19:02:59 +01:00
Don't access jQuery through parent.parent
(#5943)
This commit is contained in:
parent
5384edc7c9
commit
bc302538c0
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…
Reference in a new issue