Skip to content

Commit 41b3b60

Browse files
committed
release 0.2.1
1 parent c8fba9a commit 41b3b60

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

release/angular-responsive-tables.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66
}
77
function updateTitle(td, th) {
88
var title = th && th.textContent;
9-
if (title && !td.getAttributeNode("data-title")) {
9+
if (title && (td.getAttributeNode("data-title-override") || !td.getAttributeNode("data-title"))) {
1010
td.setAttribute("data-title", title);
11+
td.setAttribute("data-title-override", title);
1112
}
1213
}
1314
function colspan(td) {
@@ -70,9 +71,10 @@
7071
restrict: "A",
7172
require: "^^wtResponsiveTable",
7273
link: function(scope, element, attrs, tableCtrl) {
73-
var td = element[0];
74-
var th = tableCtrl.getHeader(td);
75-
updateTitle(td, th);
74+
Array.prototype.forEach.call(element[0].parentElement.querySelectorAll("td"), function(td) {
75+
var th = tableCtrl.getHeader(td);
76+
updateTitle(td, th);
77+
});
7678
}
7779
};
7880
}

release/angular-responsive-tables.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)