Skip to content

Commit

Permalink
Issue #3070: Exclude field itself from loader toggling.
Browse files Browse the repository at this point in the history
Fix class selector.
  • Loading branch information
stefanhaerter committed Feb 28, 2024
1 parent 685d945 commit 470ab26
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions var/httpd/htdocs/js/Core.AJAX.js
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,7 @@ Core.AJAX = (function (TargetNS) {
});
}
else {
$('.FormUpdate').each(function(Index, Element) {
$('.FormUpdate:not([name="' + ChangedElement + '"])').each(function(Index, Element) {
ToggleAJAXLoader($(Element).attr('id'), true);
});
}
Expand Down Expand Up @@ -793,7 +793,7 @@ Core.AJAX = (function (TargetNS) {
});
}
else {
$('.FormUpdate').each(function(Index, Element) {
$('.FormUpdate:not([name=' + ChangedElement + '])').each(function(Index, Element) {
ToggleAJAXLoader($(Element).attr('id'), false);
});
}
Expand Down
4 changes: 2 additions & 2 deletions var/httpd/htdocs/js/Core.UI.InputFields.js
Original file line number Diff line number Diff line change
Expand Up @@ -310,9 +310,9 @@ Core.UI.InputFields = (function (TargetNS) {
}

// initialize FormUpdate fields
$('.IsFormUpdate').each(function(Index, Element) {
$('.FormUpdate').each(function(Index, Element) {
$(this).off('change').on('change', function () {
Core.AJAX.FormUpdate($(this).parents('form'), 'AJAXUpdate', undefined, $(this).attr('name'));
Core.AJAX.FormUpdate($(this).parents('form'), 'AJAXUpdate', $(this).attr('name'), undefined);
});
});
};
Expand Down

0 comments on commit 470ab26

Please sign in to comment.