summaryrefslogtreecommitdiffstatshomepage
path: root/core/misc/tableresponsive.js
diff options
context:
space:
mode:
Diffstat (limited to 'core/misc/tableresponsive.js')
-rw-r--r--core/misc/tableresponsive.js12
1 files changed, 8 insertions, 4 deletions
diff --git a/core/misc/tableresponsive.js b/core/misc/tableresponsive.js
index 9b64838452ea..2f4ad6d20601 100644
--- a/core/misc/tableresponsive.js
+++ b/core/misc/tableresponsive.js
@@ -34,11 +34,13 @@
const hiddenLength = this.$headers.filter('.priority-medium:hidden, .priority-low:hidden').length;
if (hiddenLength > 0) {
- this.$link.show().text(this.showText);
+ this.$link.show();
+ this.$link[0].textContent = this.showText;
}
if (!pegged && hiddenLength === 0) {
- this.$link.hide().text(this.hideText);
+ this.$link.hide();
+ this.$link[0].textContent = this.hideText;
}
},
@@ -60,7 +62,8 @@
$header.show();
self.$revealedCells = $().add(self.$revealedCells).add($header);
});
- this.$link.text(this.hideText).data('pegged', 1);
+ this.$link[0].textContent = this.hideText;
+ this.$link.data('pegged', 1);
} else {
this.$revealedCells.hide();
this.$revealedCells.each(function (index, element) {
@@ -83,7 +86,8 @@
$cell.attr('style', newProps.join(';'));
});
- this.$link.text(this.showText).data('pegged', 0);
+ this.$link[0].textContent = this.showText;
+ this.$link.data('pegged', 0);
$(window).trigger('resize.tableresponsive');
}
}