Merge pull request #8071 from abpframework/maliming-patch-1

Add abp-action-button class to prevent duplicate.
pull/8128/head
Halil İbrahim Kalkan 5 years ago committed by GitHub
commit 6b5c763f57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,4 +1,4 @@
var abp = abp || {};
var abp = abp || {};
(function ($) {
var datatables = abp.utils.createNamespace(abp, 'libs.datatables');
@ -78,7 +78,7 @@
return "";
}
var $button = $('<button type="button" class="btn btn-primary"></button>');
var $button = $('<button type="button" class="btn btn-primary abp-action-button"></button>');
if (firstItem.displayNameHtml) {
$button.html(firstItem.text);
@ -119,7 +119,7 @@
var $container = $('<div/>')
.addClass('dropdown')
.addClass('action-button');
.addClass('abp-action-button');
var $dropdownButton = $('<button/>');
@ -236,9 +236,9 @@
var $actionContainer = _createRowAction(aData, column.rowAction, tableInstance);
hideEmptyColumn($actionContainer, tableInstance, colIndex);
var $actionButton = $(cells[colIndex]).find(".action-button");
var $actionButton = $(cells[colIndex]).find(".abp-action-button");
if ($actionButton.length === 0) {
$(cells[colIndex]).append($actionContainer);
$(cells[colIndex]).empty().append($actionContainer);
}
}
}

Loading…
Cancel
Save