fix highlight row
This commit is contained in:
parent
29b0e78835
commit
464505a2b5
@ -1539,7 +1539,7 @@ var DataTable = function () {
|
|||||||
value: function highlightRow(rowIndex) {
|
value: function highlightRow(rowIndex) {
|
||||||
var toggle = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
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) {
|
if (toggle) {
|
||||||
$row.addClass('row-highlight');
|
$row.addClass('row-highlight');
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -608,7 +608,7 @@ export default class DataTable {
|
|||||||
|
|
||||||
highlightRow(rowIndex, toggle = true) {
|
highlightRow(rowIndex, toggle = true) {
|
||||||
const $row = this.bodyScrollable
|
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) {
|
if (toggle) {
|
||||||
$row.addClass('row-highlight');
|
$row.addClass('row-highlight');
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user