Skip to content

Commit

Permalink
Strip HTML from column tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
alalonde committed May 31, 2016
1 parent fa463f2 commit ab79a7f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion angular-scrollable-table.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
el.css("width", headerWidth);
if (!title) {
// ordinary column(not sortableHeader) has box child div element that contained title string.
title = el.find(".title .ng-scope").html() || el.find(".box").html();
title = el.find(".title .ng-scope").text() || el.find(".box").text();
}
el.attr("title", title.trim());
});
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@
"tests"
],
"dependencies": {
"angular": "~1.2"
"angular": "~1.3.9"
}
}
2 changes: 1 addition & 1 deletion demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<thead>
<tr>
<th>Facility</th>
<th sortable-header col="code">Unit code</th>
<th sortable-header col="code" title="The code for the unit">Unit code</th>
<th sortable-header col="cost">Cost</th>
<th sortable-header col="conditionRating">Condition score</th>
<th ng-show="toggleColumn" col="extent">Not sortable</th>
Expand Down

0 comments on commit ab79a7f

Please sign in to comment.