Skip to content

Commit c7fa03e

Browse files
committed
Correct DT id emit in the message
1 parent 15c5937 commit c7fa03e

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

dist/angular-datatables.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/*!
2-
* angular-datatables - v0.2.0
2+
* angular-datatables - v0.2.1
33
* https://github.com/l-lin/angular-datatables
44
* License: MIT
55
*/
66
/*!
7-
* angular-datatables - v0.2.0
7+
* angular-datatables - v0.2.1
88
* https://github.com/l-lin/angular-datatables
99
* License: MIT
1010
*/
@@ -880,7 +880,7 @@
880880
}
881881
var oTable = $elem.DataTable(options);
882882
$scope.$emit('event:dataTableLoaded', {
883-
id: dtId,
883+
id: $elem.attr('id'),
884884
dt: oTable
885885
});
886886
return oTable;

dist/angular-datatables.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/datatables.bootstrap.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* angular-datatables - v0.2.0
2+
* angular-datatables - v0.2.1
33
* https://github.com/l-lin/angular-datatables
44
* License: MIT
55
*/

dist/datatables.bootstrap.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/angular-datatables.renderer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
options.destroy = true;
1717
}
1818
var oTable = $elem.DataTable(options);
19-
$scope.$emit('event:dataTableLoaded', { id: dtId, dt: oTable });
19+
$scope.$emit('event:dataTableLoaded', { id: $elem.attr('id'), dt: oTable });
2020
return oTable;
2121
}, _doRenderDataTable = function($elem, options, $scope) {
2222
_hideLoading($elem);

0 commit comments

Comments
 (0)