diff --git a/ajax/libs/ng-grid/2.0.8/ng-grid.debug.js b/ajax/libs/ng-grid/2.0.8/ng-grid.debug.js index cc26cd8b2..35bf6b162 100644 --- a/ajax/libs/ng-grid/2.0.8/ng-grid.debug.js +++ b/ajax/libs/ng-grid/2.0.8/ng-grid.debug.js @@ -2,7 +2,7 @@ * ng-grid JavaScript Library * Authors: https://github.com/angular-ui/ng-grid/blob/master/README.md * License: MIT (http://www.opensource.org/licenses/mit-license.php) -* Compiled At: 02/24/2014 12:38 +* Compiled At: 04/07/2014 16:55 ***********************************************/ (function(window, $) { 'use strict'; @@ -767,21 +767,21 @@ var ngColumn = function (config, $scope, grid, domUtilityService, $templateCache self.editableCellTemplate = colDef.editableCellTemplate || $templateCache.get('editableCellTemplate.html'); } if (colDef.cellTemplate && !TEMPLATE_REGEXP.test(colDef.cellTemplate)) { - self.cellTemplate = $.ajax({ + self.cellTemplate = $templateCache.get(colDef.cellTemplate) || $.ajax({ type: "GET", url: colDef.cellTemplate, async: false }).responseText; } if (self.enableCellEdit && colDef.editableCellTemplate && !TEMPLATE_REGEXP.test(colDef.editableCellTemplate)) { - self.editableCellTemplate = $.ajax({ + self.editableCellTemplate = $templateCache.get(colDef.editableCellTemplate) || $.ajax({ type: "GET", url: colDef.editableCellTemplate, async: false }).responseText; } if (colDef.headerCellTemplate && !TEMPLATE_REGEXP.test(colDef.headerCellTemplate)) { - self.headerCellTemplate = $.ajax({ + self.headerCellTemplate = $templateCache.get(colDef.headerCellTemplate) || $.ajax({ type: "GET", url: colDef.headerCellTemplate, async: false @@ -1035,7 +1035,7 @@ var ngEventProvider = function (grid, $scope, domUtilityService, $timeout) { angular.element(col).on('$destroy', function() { angular.element(col).off('dragstart', self.dragStart); - col.removeEventListener(self.dragStart); + col.removeEventListener('dragstart', self.dragStart); }); } } @@ -3083,14 +3083,14 @@ ngGridDirectives.directive('ngCell', ['$compile', '$domUtilityService', function html = cellTemplate; } - var cellElement = $compile(html)($scope); - + var cellElement = $(html); + iElement.append(cellElement); + $compile(cellElement)($scope); + if ($scope.enableCellSelection && cellElement[0].className.indexOf('ngSelectionCell') === -1) { cellElement[0].setAttribute('tabindex', 0); cellElement.addClass('ngCellElement'); } - - iElement.append(cellElement); }, post: function($scope, iElement) { if ($scope.enableCellSelection) { @@ -3363,7 +3363,7 @@ ngGridDirectives.directive('ngGrid', ['$compile', '$filter', '$templateCache', ' options.plugins[$utils.getInstanceType(p)] = p; $scope.$on('$destroy', function() { - newScope.destroy(); + newScope.$destroy(); }); }); //send initi finalize notification. @@ -3866,7 +3866,7 @@ angular.module('ngGrid').run(['$templateCache', function($templateCache) { $templateCache.put('headerCellTemplate.html', - "
\r" + + "
\r" + "\n" + "
{{col.displayName}}
\r" + "\n" +