fix highlight row

This commit is contained in:
Faris Ansari 2017-10-07 22:20:56 +05:30
parent 29b0e78835
commit 464505a2b5
3 changed files with 3 additions and 3 deletions

View File

@ -1539,7 +1539,7 @@ var DataTable = function () {
value: function highlightRow(rowIndex) {
var toggle = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
var $row = this.bodyScrollable.find('.data-table-row[data-row-index="' + rowIndex + '"]:not(.row-highlight)');
var $row = this.bodyScrollable.find('.data-table-row[data-row-index="' + rowIndex + '"]');
if (toggle) {
$row.addClass('row-highlight');

File diff suppressed because one or more lines are too long

View File

@ -608,7 +608,7 @@ export default class DataTable {
highlightRow(rowIndex, toggle = true) {
const $row = this.bodyScrollable
.find(`.data-table-row[data-row-index="${rowIndex}"]:not(.row-highlight)`);
.find(`.data-table-row[data-row-index="${rowIndex}"]`);
if (toggle) {
$row.addClass('row-highlight');