Don't use buttons in tables with full row select as this is confusing when clicking a button of a not selected row

This commit is contained in:
Bernd Bestel
2018-08-11 14:38:17 +02:00
parent ef043b38ce
commit c27f41aee4
2 changed files with 9 additions and 15 deletions

View File

@@ -1,9 +1,6 @@
var recipesTables = $('#recipes-table').DataTable({
'paginate': false,
'order': [[1, 'asc']],
'columnDefs': [
{ 'orderable': false, 'targets': 0 }
],
'order': [[0, 'asc']],
'language': JSON.parse(L('datatables_localization')),
'scrollY': false,
'colReorder': true,
@@ -32,7 +29,7 @@ $("#search").on("keyup", function()
recipesTables.search(value).draw();
});
$(document).on('click', '.recipe-delete-button', function(e)
$("#selectedRecipeDeleteButton").on('click', function(e)
{
var objectName = $(e.currentTarget).attr('data-recipe-name');
var objectId = $(e.currentTarget).attr('data-recipe-id');