From 7ad1959643930dbcb7c2650067caa3e683953d4b Mon Sep 17 00:00:00 2001 From: Mark Nutter Date: Fri, 31 Jan 2014 08:26:16 -0600 Subject: [PATCH] fixed angular-table.js to work with angular 1.2+ --- src/main/webapp/js/lib/angular-table.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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('