Skip to content

Commit

Permalink
Merge 4b29f12 into 880fbb2
Browse files Browse the repository at this point in the history
  • Loading branch information
harscoet committed Mar 19, 2014
2 parents 880fbb2 + 4b29f12 commit 75426bc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ng-table.js
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ app.directive('ngTable', ['$compile', '$q', '$parse',
pagination: (attrs.templatePagination ? attrs.templatePagination : 'ng-table/pager.html')
};
var headerTemplate = thead.length > 0 ? thead : angular.element(document.createElement('thead')).attr('ng-include', 'templates.header');
var paginationTemplate = angular.element(document.createElement('tfoot')).attr('ng-include', 'templates.pagination');
var paginationTemplate = angular.element('<tfoot />').append(angular.element('<tr />').append(angular.element('<td />').attr({ 'ng-include': 'templates.pagination', 'colspan': columns.length })));
element.find('thead').remove();
var tbody = element.find('tbody');
element.prepend(headerTemplate);
Expand Down
Loading

0 comments on commit 75426bc

Please sign in to comment.