Browse Source

Check actionContainer is not empty before append.

Resolve #9193
pull/9229/head
maliming 5 years ago
parent
commit
353fa683a4
  1. 8
      framework/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared/wwwroot/libs/abp/aspnetcore-mvc-ui-theme-shared/datatables/datatables-extensions.js

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

@ -236,9 +236,11 @@ var abp = abp || {};
var $actionContainer = _createRowAction(aData, column.rowAction, tableInstance);
hideEmptyColumn($actionContainer, tableInstance, colIndex);
var $actionButton = $(cells[colIndex]).find(".abp-action-button");
if ($actionButton.length === 0) {
$(cells[colIndex]).empty().append($actionContainer);
if ($actionContainer) {
var $actionButton = $(cells[colIndex]).find(".abp-action-button");
if ($actionButton.length === 0) {
$(cells[colIndex]).empty().append($actionContainer);
}
}
}
}

Loading…
Cancel
Save