Skip to content

Commit 0168a5c

Browse files
committed
Update JsUtilsAjaxTrait.php
1 parent 1606662 commit 0168a5c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Ajax/common/traits/JsUtilsAjaxTrait.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,15 +179,15 @@ protected function _getOnAjaxDone($responseElement, $jqueryDone, $ajaxTransition
179179

180180
protected function removeLoader($hasLoader) {
181181
if ($hasLoader === true) {
182-
return "\n$(self).find('.ajax-loader').remove();";
182+
return "\n$('body').find('.ajax-loader').remove();";
183183
}
184184
if ($hasLoader === 'internal') {
185185
return "\n$(self).removeClass('loading');";
186186
}
187187
if ($hasLoader === 'internal-x') {
188188
return "\n$(self).children('.ajax-loader').remove();";
189189
}
190-
return "\n$(self).find('.loading').removeClass('loading');";
190+
return "\n$('body').find('.loading').removeClass('loading');";
191191
}
192192

193193
protected function _getResponseElement($responseElement) {

0 commit comments

Comments
 (0)