mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-24 22:34:24 +02:00
Revert "utils.js: Utilize ids of forms and elements in getCssPath"
This reverts commit c835f02953e13519f8326817dd326c5565154995.
This commit is contained in:
parent
c0e102cedd
commit
50f5aa0ac3
@ -286,7 +286,8 @@
|
|||||||
while (true) {
|
while (true) {
|
||||||
var id = $node.attr('id');
|
var id = $node.attr('id');
|
||||||
|
|
||||||
if (typeof id !== 'undefined') {
|
// Ignore forms and form controls because id generation is unreliable :(
|
||||||
|
if (typeof id !== 'undefined' && ! $node.is(':input') && ! $node.is('form')) {
|
||||||
path.push('#' + id);
|
path.push('#' + id);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user