mirror of
https://github.com/ether/etherpad-lite.git
synced 2026-05-05 20:26:49 +02:00
Don't access jQuery through parent.parent (#5943)
This commit is contained in:
parent
5384edc7c9
commit
bc302538c0
@ -318,7 +318,7 @@ exports.padeditbar = new class {
|
||||
}
|
||||
} else {
|
||||
// Focus on the editbar :)
|
||||
const firstEditbarElement = parent.parent.$('#editbar button').first();
|
||||
const firstEditbarElement = $('#editbar button').first();
|
||||
|
||||
$(evt.currentTarget).trigger('blur');
|
||||
firstEditbarElement.trigger('focus');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user