Skip to content

Commit 1606662

Browse files
committed
Update JsUtilsAjaxTrait.php
1 parent b5945ec commit 1606662

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Ajax/common/traits/JsUtilsAjaxTrait.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,9 @@ protected function _getOnAjaxDone($responseElement, $jqueryDone, $ajaxTransition
178178
}
179179

180180
protected function removeLoader($hasLoader) {
181+
if ($hasLoader === true) {
182+
return "\n$(self).find('.ajax-loader').remove();";
183+
}
181184
if ($hasLoader === 'internal') {
182185
return "\n$(self).removeClass('loading');";
183186
}

0 commit comments

Comments
 (0)