mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 12:20:22 +00:00
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:
@@ -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');
|
||||
|
Reference in New Issue
Block a user