Skip to content

Commit 7d937bb

Browse files
committed
Add the possibility to use fnServerParams l-lin#10
1 parent de71155 commit 7d937bb

File tree

3 files changed

+1
-18
lines changed

3 files changed

+1
-18
lines changed

dist/angular-datatables.js

-8
Original file line numberDiff line numberDiff line change
@@ -224,14 +224,6 @@
224224
if (angular.isDefined($scope.dtOptions)) {
225225
var options = {};
226226
angular.extend(options, $scope.dtOptions);
227-
// for Angular http inceptors
228-
if (angular.isUndefined(options.fnServerData)) {
229-
options.fnServerData = function (sSource, aoData, resultCb) {
230-
$http.get(sSource).then(function (result) {
231-
resultCb(result.data);
232-
});
233-
};
234-
}
235227
// Set the columns
236228
if (angular.isArray($scope.dtColumns)) {
237229
options.aoColumns = $scope.dtColumns;

dist/angular-datatables.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/angular-datatables.directive.js

-9
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,6 @@
1818
var options = {};
1919
angular.extend(options, $scope.dtOptions);
2020

21-
// for Angular http inceptors
22-
if (angular.isUndefined(options.fnServerData)) {
23-
options.fnServerData = function(sSource, aoData, resultCb) {
24-
$http.get(sSource).then(function(result) {
25-
resultCb(result.data);
26-
});
27-
};
28-
}
29-
3021
// Set the columns
3122
if (angular.isArray($scope.dtColumns)) {
3223
options.aoColumns = $scope.dtColumns;

0 commit comments

Comments
 (0)