From c835f02953e13519f8326817dd326c5565154995 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Wed, 17 Apr 2019 11:25:10 +0200 Subject: [PATCH] utils.js: Utilize ids of forms and elements in getCssPath They're now reliable again :) fixes #2238 --- public/js/icinga/utils.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/public/js/icinga/utils.js b/public/js/icinga/utils.js index 962d02c42..c99d6855c 100644 --- a/public/js/icinga/utils.js +++ b/public/js/icinga/utils.js @@ -286,8 +286,7 @@ while (true) { var id = $node.attr('id'); - // Ignore forms and form controls because id generation is unreliable :( - if (typeof id !== 'undefined' && ! $node.is(':input') && ! $node.is('form')) { + if (typeof id !== 'undefined') { path.push('#' + id); break; }