Skip to content

Commit

Permalink
Issue #1559: Restricting context for reinitialization to this-Object
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanhaerter authored and svenoe committed Feb 8, 2022
1 parent 28c003b commit def8a5c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion var/httpd/htdocs/js/Core.Agent.DynamicFieldDBSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ Core.Agent.DynamicFieldDBSearch = (function(TargetNS) {

// Load events when widget has expanded like e.g. in AdminGenericAgent screen (see bug#14590).
$('.WidgetSimple.Collapsed .WidgetAction.Toggle').on('click', function () {
InitDynamicFields();
// Context parameter 'this' ensures reinitialization only for event receiving element
InitDynamicFields(this);
});

// change the position of the label for DB fields
Expand Down

0 comments on commit def8a5c

Please sign in to comment.