Skip to content
This repository was archived by the owner on Feb 2, 2025. It is now read-only.

Commit f0c7554

Browse files
committed
Fix showing loading msg when changing data #528
1 parent 7f23444 commit f0c7554

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

dist/angular-datatables.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -940,7 +940,6 @@ function dtPromiseRenderer($q, $timeout, $log, DTRenderer, DTRendererService, DT
940940
function reloadData(callback, resetPaging) {
941941
var previousPage = _oTable && _oTable.page() ? _oTable.page() : 0;
942942
if (angular.isFunction(renderer.options.fnPromise)) {
943-
DTRendererService.showLoading(_$elem);
944943
_resolve(renderer.options.fnPromise, _redrawRows).then(function(result) {
945944
if (angular.isFunction(callback)) {
946945
callback(result.DataTable.data());
@@ -959,7 +958,6 @@ function dtPromiseRenderer($q, $timeout, $log, DTRenderer, DTRendererService, DT
959958
// We also need to set the $scope.dtOptions, otherwise, when we change the columns, it will revert to the old data
960959
// See https://github.com/l-lin/angular-datatables/issues/359
961960
_$scope.dtOptions.fnPromise = fnPromise;
962-
DTRendererService.showLoading(_$elem);
963961
_resolve(renderer.options.fnPromise, _redrawRows);
964962
}
965963

0 commit comments

Comments
 (0)