Skip to content

Commit

Permalink
fix(Edit): Allow COL_FIELD in editable templates
Browse files Browse the repository at this point in the history
  • Loading branch information
c0bra committed May 18, 2015
1 parent 0a10fe1 commit fa9066b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/features/edit/js/gridEdit.js
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,9 @@
//get original value from the cell
origCellValue = cellModel($scope);

html = $scope.col.editableCellTemplate;
html = $scope.col.editableCellTemplate
.replace(uiGridConstants.COL_FIELD, 'grid.getCellValue(row, col)');

if ($scope.col.colDef.editModelField) {
html = html.replace(uiGridConstants.MODEL_COL_FIELD, gridUtil.preEval('row.entity.' + $scope.col.colDef.editModelField));
}
Expand Down

0 comments on commit fa9066b

Please sign in to comment.