</div>
<div class="eg-grid-cell"
eg-grid-column-drag-dest
- ng-class="{'eg-grid-column-last-mod' : lastModColumn==col.name}"
+ ng-class="{'eg-grid-column-last-mod' : isLastModifiedColumn(col)}"
column="{{col.name}}"
eg-right-click="onContextMenu($event)"
ng-repeat="col in columns"
column.flex = 1;
}
$scope.modifyColumnFlex = function(col, val) {
- $scope.lastModColumn = col.name;
+ $scope.lastModColumn = col;
grid.modifyColumnFlex(col, val);
}
+ $scope.isLastModifiedColumn = function(col) {
+ if ($scope.lastModColumn)
+ return $scope.lastModColumn === col;
+ return false;
+ }
+
grid.modifyColumnPos = function(col, diff) {
var srcIdx, targetIdx;
angular.forEach(grid.columnsProvider.columns,
}
$scope.modifyColumnPos = function(col, diff) {
- $scope.lastModColumn = col.name;
+ $scope.lastModColumn = col;
return grid.modifyColumnPos(col, diff);
}