Skip to content

Commit

Permalink
Fixed old ref to options attr - closes #20
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Jones committed Apr 21, 2015
1 parent 475a39c commit 1eae4d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tc-grid",
"version": "0.6.2",
"version": "0.6.3",
"homepage": "https://github.com/ThirdCornerLLC/tc-grid",
"authors": [
"Zach Barnes <[email protected]>",
Expand Down
6 changes: 3 additions & 3 deletions src/js/tcGridDirective.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

if (colField) {
sortFn = ' ng-click="vm.sort(\'' + (colField) + '\')"';
headerId = ' id="' + attrs.tcGridOptions + "_" + colField.replace(/\./g, "") + '"';
headerId = ' id="' + attrs.tcOptions + "_" + colField.replace(/\./g, "") + '"';
attrs.columns.push(colField);

if(el.html() === '') {
Expand All @@ -53,7 +53,7 @@
});

var templateHtml = $templateCache.get('tcGrid.html');
templateHtml = templateHtml.replace(/%OPTIONS%/g, attrs.tcGridOptions);
templateHtml = templateHtml.replace(/%OPTIONS%/g, attrs.tcOptions);
templateHtml = templateHtml.replace(/%HEADER%/g, headerHtml);
templateHtml = templateHtml.replace(/%DATA%/g, attrs.tcData);
templateHtml = templateHtml.replace(/%GRIDCLASS%/g, attrs.tcGridClass || 'tc-grid');
Expand Down Expand Up @@ -240,7 +240,7 @@
}

function fetchColumn(name) {
var id = $attrs.tcGridOptions + '_' + name.replace(/\./g, '');
var id = $attrs.tcOptions + '_' + name.replace(/\./g, '');
return angular.element(document.getElementById(id));
}

Expand Down

0 comments on commit 1eae4d3

Please sign in to comment.