Browse Source

Merge pull request #19101 from abpframework/8.1-datatables-actions-fix

Fix rendering actions cell on specific cases
pull/19102/head
maliming 3 years ago
committed by GitHub
parent
commit
a25af411ab
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      framework/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared/wwwroot/libs/abp/aspnetcore-mvc-ui-theme-shared/datatables/datatables-extensions.js

2
framework/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared/wwwroot/libs/abp/aspnetcore-mvc-ui-theme-shared/datatables/datatables-extensions.js

@ -258,7 +258,7 @@ var abp = abp || {};
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) {
if (cell._DT_CellIndex && cell._DT_CellIndex.column === colIndex) {
var $actionButton = $(cell).find(".abp-action-button");
if ($actionButton.length === 0) {
$(cell).empty().append($actionContainer);

Loading…
Cancel
Save