Skip to content

Commit ab79a7f

Browse files
committed
Strip HTML from column tooltips
1 parent fa463f2 commit ab79a7f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

angular-scrollable-table.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@
140140
el.css("width", headerWidth);
141141
if (!title) {
142142
// ordinary column(not sortableHeader) has box child div element that contained title string.
143-
title = el.find(".title .ng-scope").html() || el.find(".box").html();
143+
title = el.find(".title .ng-scope").text() || el.find(".box").text();
144144
}
145145
el.attr("title", title.trim());
146146
});

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@
2222
"tests"
2323
],
2424
"dependencies": {
25-
"angular": "~1.2"
25+
"angular": "~1.3.9"
2626
}
2727
}

demo/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
<thead>
3838
<tr>
3939
<th>Facility</th>
40-
<th sortable-header col="code">Unit code</th>
40+
<th sortable-header col="code" title="The code for the unit">Unit code</th>
4141
<th sortable-header col="cost">Cost</th>
4242
<th sortable-header col="conditionRating">Condition score</th>
4343
<th ng-show="toggleColumn" col="extent">Not sortable</th>

0 commit comments

Comments
 (0)