|
|
|
@ -236,8 +236,6 @@ var abp = abp || {}; |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
var cells = $(nRow).children("td"); |
|
|
|
|
|
|
|
for (var colIndex = 0; colIndex < columns.length; colIndex++) { |
|
|
|
var column = columns[colIndex]; |
|
|
|
if (column.rowAction) { |
|
|
|
@ -245,9 +243,16 @@ var abp = abp || {}; |
|
|
|
hideEmptyColumn($actionContainer, tableInstance, colIndex); |
|
|
|
|
|
|
|
if ($actionContainer) { |
|
|
|
var $actionButton = $(cells[colIndex]).find(".abp-action-button"); |
|
|
|
if ($actionButton.length === 0) { |
|
|
|
$(cells[colIndex]).empty().append($actionContainer); |
|
|
|
var cells = $(nRow).children("td"); |
|
|
|
for (var i = 0; i < cells.length; i++) { |
|
|
|
var cell = cells[i]; |
|
|
|
if (cell._DT_CellIndex && cell._DT_CellIndex.row === iDisplayIndex && cell._DT_CellIndex.column === colIndex) { |
|
|
|
var $actionButton = $(cell).find(".abp-action-button"); |
|
|
|
if ($actionButton.length === 0) { |
|
|
|
$(cell).empty().append($actionContainer); |
|
|
|
}; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|