Browse Source
Merge pull request #9229 from abpframework/maliming/datatables-patch
Check actionContainer is not empty before append.
pull/9250/head
liangshiwei
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
3 deletions
-
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); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|