foodsoft/app/views/finance/balancing/index.js.haml

12 lines
356 B
Text
Raw Normal View History

$('#ordersTable').html('#{j(render('orders'))}');
:plain
$('.expand-trigger').click(function() {
var orderId = $(this).closest('tr').data('order_id');
var expandedRow = $('#expanded-row-' + orderId);
// Toggle visibility of the expanded row
expandedRow.slideToggle();
return false; // Prevent the default behavior of the link
});