Skip to content

Commit

Permalink
Issue #3070: Remove check for class before toggling AJAXLoader.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanhaerter committed Feb 28, 2024
1 parent 278ea10 commit 81019bc
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions var/httpd/htdocs/js/Core.AJAX.js
Original file line number Diff line number Diff line change
Expand Up @@ -757,9 +757,7 @@ Core.AJAX = (function (TargetNS) {
QueryString = TargetNS.SerializeForm($EventElement, Data) + SerializeData(Data);

var $ChangedElement = $('[name="' + ChangedElementWithIndex + '"]');
if ( $ChangedElement.hasClass('FormUpdate') || $ChangedElement.hasClass('DynamicFieldDB') ) {
ToggleAJAXLoader($ChangedElement.attr('id'), true);
}
ToggleAJAXLoader($ChangedElement.attr('id'), true);

return $.ajax({
type: 'POST',
Expand Down Expand Up @@ -787,9 +785,7 @@ Core.AJAX = (function (TargetNS) {
},
complete: function () {
var $ChangedElement = $('[name="' + ChangedElementWithIndex + '"]');
if ( $ChangedElement.hasClass('FormUpdate') ) {
ToggleAJAXLoader($ChangedElement.attr('id'), false);
}
ToggleAJAXLoader($ChangedElement.attr('id'), false);
},
error: function(XHRObject, Status, Error) {
HandleAJAXError(XHRObject, Status, Error)
Expand Down

0 comments on commit 81019bc

Please sign in to comment.