Don't access jQuery through parent.parent

This commit is contained in:
Denys Halenok 2023-09-21 10:30:03 +02:00
parent 3d05616fe7
commit af6275bb75
No known key found for this signature in database
GPG key ID: 78381F2A21A2BEBD

View file

@ -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');