Browse Source
Merge pull request #21676 from abpframework/datatables-extensions.js
Return jQuery object instead of empty string for invisible row action.
pull/21695/head
Engincan VESKE
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
2 additions and
2 deletions
-
framework/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared/wwwroot/libs/abp/aspnetcore-mvc-ui-theme-shared/datatables/datatables-extensions.js
|
|
|
@ -87,7 +87,7 @@ var abp = abp || {}; |
|
|
|
if (field.items.length === 1) { |
|
|
|
var firstItem = field.items[0]; |
|
|
|
if (!getVisibilityValue(firstItem.visible, record, tableInstance)) { |
|
|
|
return ""; |
|
|
|
return $(''); |
|
|
|
} |
|
|
|
|
|
|
|
var $button = $('<button type="button" class="btn btn-primary btn-sm abp-action-button"></button>'); |
|
|
|
@ -181,7 +181,7 @@ var abp = abp || {}; |
|
|
|
if ($dropdownItemsContainer.find('li').length > 0) { |
|
|
|
$dropdownItemsContainer.appendTo($container); |
|
|
|
} else { |
|
|
|
$dropdownButton.attr('disabled', 'disabled'); |
|
|
|
$dropdownButton.addClass('d-none'); |
|
|
|
} |
|
|
|
|
|
|
|
$dropdownButton.prependTo($container); |
|
|
|
|