diff --git a/src/main/webapp/js/lib/angular-table.js b/src/main/webapp/js/lib/angular-table.js index c2dd587..6f45f62 100644 --- a/src/main/webapp/js/lib/angular-table.js +++ b/src/main/webapp/js/lib/angular-table.js @@ -9,6 +9,7 @@ angular.module('angular-table', []) compile: function (tElement, tAttrs) { SortState.sortExpression = tAttrs.defaultSortColumn; TemplateStaticState.instrumentationEnabled = tAttrs.instrumentationEnabled; + TemplateStaticState.modelName = tAttrs.model; // find whatever classes were passed into the angular-table, and merge them with the built in classes for the container div tElement.addClass('angularTableContainer'); @@ -18,8 +19,9 @@ angular.module('angular-table', []) tElement.replaceWith(rowTemplate); // return linking function - return function(scope) { + return function(scope, elem, attrs) { scope.parent = scope.$parent; + }; }, scope: { @@ -316,7 +318,7 @@ angular.module('angular-table', []) // add the ng-repeat and row selection click handler to each row rowTemplate = rowTemplate.replace('