From bc302538c0c0feb0b4eec093d30e489cb5f559ae Mon Sep 17 00:00:00 2001 From: Denys Halenok Date: Fri, 22 Sep 2023 20:53:24 +0200 Subject: [PATCH] Don't access jQuery through `parent.parent` (#5943) --- src/static/js/pad_editbar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/static/js/pad_editbar.js b/src/static/js/pad_editbar.js index d7f12465d..af8d59f1f 100644 --- a/src/static/js/pad_editbar.js +++ b/src/static/js/pad_editbar.js @@ -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');